# Map Visualization in Tutorial Does not work

**URL:** <https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755>\
**Category:** Kibana\
**Created:** [July 16, 2015, 11:32pm UTC](https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755 "2015-07-16T23:32:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScottLawrenceLawson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scottlawrencelawson/32/3644_2.png) [@ScottLawrenceLawson](https://discuss.elastic.co/u/ScottLawrenceLawson)\
**Post date:** [July 16, 2015, 11:32pm UTC](https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755/1 "2015-07-16T23:32:09Z")

</div>

I have gone through this tutorial using Elasticsearch and kibana 4 on Found in the cloud:

[https://www.elastic.co/guide/en/kibana/current/tutorial-visualizing.html](https://www.elastic.co/guide/en/kibana/current/tutorial-visualizing.html)

I have everything working except the map visualization example. My data (from the tutorial files) shows the geo codes in the discover tab, but when I follow the steps I get "no results found". As seen here:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/6d73945d6a396a2d07b156c7aa50ccb1a2eed345.PNG)

What could I be doing wrong?

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [July 17, 2015, 3:33am UTC](https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755/2 "2015-07-17T03:33:45Z")

</div>

I can reproduce this problem - our team will investigate tomorrow. Thank you for reporting!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 17, 2015, 5:01am UTC](https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755/3 "2015-07-17T05:01:59Z")

</div>

Here's the GH issue for this [https://github.com/elastic/kibana/issues/4448](https://github.com/elastic/kibana/issues/4448)

---

<div class="post-metadata">

**Author:** ![ScottLawrenceLawson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scottlawrencelawson/32/3644_2.png) [@ScottLawrenceLawson](https://discuss.elastic.co/u/ScottLawrenceLawson)\
**Post date:** [July 17, 2015, 3:08pm UTC](https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755/4 "2015-07-17T15:08:18Z")

</div>

Thanks, now I know it is not due to my raw inexperience. 😊

---

<div class="post-metadata">

**Author:** ![anmolkoul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anmolkoul/32/3799_2.png) [@anmolkoul](https://discuss.elastic.co/u/anmolkoul)\
**Post date:** [July 21, 2015, 2:18pm UTC](https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755/5 "2015-07-21T14:18:59Z")

</div>

I had geohash codes embedded into my data and was getting the same issue. I changed that to a nested latitude-longitude datum and set its type as geo\_point. My map is working well now.  
Would like to know this issue though.  
Cheers!

---

<div class="post-metadata">

**Author:** ![Paul\_Echeverri](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Paul\_Echeverri](https://discuss.elastic.co/u/Paul_Echeverri)\
**Post date:** [July 28, 2015, 6:08pm UTC](https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755/6 "2015-07-28T18:08:05Z")

</div>

Mr. Lawson:

Sorry for your bad experience with the tutorial! With current versions of Elasticsearch, this dataset needs a geolocation mapping to work properly.

To clear the data from a previous import, execute the following commands:

> curl -XDELETE [http://localhost:9200/logstash-2015.05.18](http://localhost:9200/logstash-2015.05.18)  
> curl -XDELETE [http://localhost:9200/logstash-2015.05.19](http://localhost:9200/logstash-2015.05.19)  
> curl -XDELETE [http://localhost:9200/logstash-2015.05.20](http://localhost:9200/logstash-2015.05.20)

Before importing the logs.jsonl file to Elasticsearch, establish the mappings with the following command:

> curl -XPUT [http://localhost:9200/logstash-2015.05.18](http://localhost:9200/logstash-2015.05.18) -d '  
> {  
> "mappings" : {  
> "log" : {  
> "properties" : {  
> "geo" : {  
> "properties" : {  
> "coordinates" : {  
> "type" : "geo\_point"  
> }  
> }  
> }  
> }  
> }  
> }  
> }  
> ';

Repeat that mapping for the other two dates, 2015-05-19 and 2015-05-20, then import logs.jsonl according to the tutorial's instructions.

You may need to refresh your indexes by navigating to **Settings \> Indices** in the Kibana UI, selecting the `logstash-*` index pattern, and clicking the yellow **Refresh** button.

I'll update the documentation to reflect this step soonest.

Paul Echeverri  
Senior Technical Writer

(edit: corrected the mapping, added directions on clearing old indices)

---

<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:15pm UTC](https://discuss.elastic.co/t/map-visualization-in-tutorial-does-not-work/25755/7 "2017-07-06T14:15:44Z")

</div>


