# Map works in k 3 but not on k4

**URL:** <https://discuss.elastic.co/t/map-works-in-k-3-but-not-on-k4/38178>\
**Category:** Kibana\
**Created:** [December 30, 2015, 1:59pm UTC](https://discuss.elastic.co/t/map-works-in-k-3-but-not-on-k4/38178 "2015-12-30T13:59:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejus](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@tejus](https://discuss.elastic.co/u/tejus)\
**Post date:** [December 30, 2015, 1:59pm UTC](https://discuss.elastic.co/t/map-works-in-k-3-but-not-on-k4/38178/1 "2015-12-30T13:59:42Z")

</div>

We had the data on ES and visualization on Kibana 3 where the map was  
working. The same data is loaded on ES 2.1 and when we are trying to  
visualize it on kibana 4 the tile map is not working. Its plotting the  
coordinates in Kibana 3.

here is the sample json (truncated - that the whole json is confidential)

{"user\_lang": "en", "tweet": "random text", "user\_location": "England, United Kingdom",  
"coordinates": [-0.540240236617, 52.7954791], "class": "tweet\_details",  
"retweet\_count": 3, "user\_name": "Energy Rezh\* 12k",  
"user\_time\_zone": "Pacific Time (US & Canada)"}

the field "coordinates": [-0.540240236617, 52.7954791] should be plotted on map

i also tried changing the coordinates field to this format

```
"coordinates": {

"lat": "-27.0",

"lon": "133.0"

} 

```

but it didn't help  
is there something wrong with the json ?? every other visualization is working except for tile map

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [December 30, 2015, 7:15pm UTC](https://discuss.elastic.co/t/map-works-in-k-3-but-not-on-k4/38178/2 "2015-12-30T19:15:34Z")

</div>

The tile map visualization in Kibana 4 uses the [geo hash grid aggregation](https://www.elastic.co/guide/en/elasticsearch/guide/current/geohash-grid-agg.html). This aggregation doesn't plot exact coordinates but instead groups points into buckets based on a precision.

Is this why things don't look the way you expect?

---

<div class="post-metadata">

**Author:** ![tejus](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@tejus](https://discuss.elastic.co/u/tejus)\
**Post date:** [January 31, 2016, 5:07pm UTC](https://discuss.elastic.co/t/map-works-in-k-3-but-not-on-k4/38178/3 "2016-01-31T17:07:06Z")

</div>

it was not plotting at all. i was not getting any points. the issue was with mapping

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:03pm UTC](https://discuss.elastic.co/t/map-works-in-k-3-but-not-on-k4/38178/4 "2017-07-06T14:03:41Z")

</div>


