# Tile Map doesn't show results on map using geopoint

**URL:** https://discuss.elastic.co/t/tile-map-doesnt-show-results-on-map-using-geopoint/46550
**Category:** Kibana
**Created:** [April 6, 2016, 3:01pm UTC](https://discuss.elastic.co/t/tile-map-doesnt-show-results-on-map-using-geopoint/46550 "2016-04-06T15:01:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![frazer84](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frazer84/32/8944_2.png) [@frazer84](https://discuss.elastic.co/u/frazer84)
#### Post date: [April 6, 2016, 3:01pm UTC](https://discuss.elastic.co/t/tile-map-doesnt-show-results-on-map-using-geopoint/46550/1 "2016-04-06T15:01:02Z")

</div>

Hi,

I'm trying to create a Tile Map using my geopoint data in ES.

This is how I've set up the map:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/f/f496ff6b0b6ffa60930fc1e3ca3d2d65123fda30.png)

As you can see, the map has no results.

Looking in the details section, the ES request body looks like this:

> {  
> "size": 0,  
> "query": {  
> "query\_string": {  
> "query": "\*",  
> "analyze\_wildcard": true  
> }  
> },  
> "aggs": {  
> "2": {  
> "geohash\_grid": {  
> "field": "geopoint",  
> "precision": 2  
> }  
> }  
> }  
> }

The response looks like this:

> {  
> "took": 2,  
> "timed\_out": false,  
> "\_shards": {  
> "total": 5,  
> "successful": 5,  
> "failed": 0  
> },  
> "hits": {  
> "total": 2,  
> "max\_score": 0,  
> "hits":   
> },  
> "aggregations": {  
> "2": {  
> "buckets":   
> }  
> }  
> }

As you can see, there are 2 hits.

This is how my data looks like in ES viewed in Kibana:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/4/429523997f6590192df010d49d8b78e57d08ad84.png)

As you can see here, I've done the mapping of the field to be geopoint. I started with just the latlon-values, and then tried to add the geohash representation to see if that would work. I would prefer to only use latlon at the end.

Why doesn't the map result show?

Thanks!

---

<div class="post-metadata">

### Author: ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)
#### Post date: [April 6, 2016, 6:12pm UTC](https://discuss.elastic.co/t/tile-map-doesnt-show-results-on-map-using-geopoint/46550/2 "2016-04-06T18:12:07Z")

</div>

I suspect the issue may be related to the `geohash` property in the document values, but that's mostly just a guess.

It's easy enough to confirm though - simply add another field with the same geo data, without the `geohash` property, and see if that works correctly with the TileMap.

It's also possible, though I think unlikely, that the field mapping is wrong. Check the output from `/test/_mapping/field/geopoint` against Elasticsearch, and see if the `type` is in fact `geo_point`.

---

<div class="post-metadata">

### Author: ![frazer84](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frazer84/32/8944_2.png) [@frazer84](https://discuss.elastic.co/u/frazer84)
#### Post date: [April 6, 2016, 6:31pm UTC](https://discuss.elastic.co/t/tile-map-doesnt-show-results-on-map-using-geopoint/46550/3 "2016-04-06T18:31:34Z")

</div>

Thank you for the quick answer.

I tried first without the geohash field without any success, so I tried with that as well.

The mapping reply from /test/\_mapping/field/geopoint looks like this, which is made by me manually, and I think this is correct:

> {"test":{"mappings":{"“location”":{"geopoint":{"full\_name":"geopoint","mapping":{"geopoint":{"type":"geo\_point","lat\_lon":true,"geohash":true}}}}}}}

---

<div class="post-metadata">

### Author: ![frazer84](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frazer84/32/8944_2.png) [@frazer84](https://discuss.elastic.co/u/frazer84)
#### Post date: [April 6, 2016, 7:08pm UTC](https://discuss.elastic.co/t/tile-map-doesnt-show-results-on-map-using-geopoint/46550/4 "2016-04-06T19:08:16Z")

</div>

Looking closely at my reply from the mapping request, I can now see that there are double quotes around the "location" field. This is the discrepancy when using a Mac and it's not using default double quotes in the text editor. When removing the index, and adding mapping without these faulty double quotes, it works. Thanks for the help!

---

<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, 1:56pm UTC](https://discuss.elastic.co/t/tile-map-doesnt-show-results-on-map-using-geopoint/46550/5 "2017-07-06T13:56:48Z")

</div>


