# Maps kibana with geo point

**URL:** https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862
**Category:** Kibana
**Tags:** maps
**Created:** [May 24, 2021, 7:43pm UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862 "2021-05-24T19:43:33Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)
#### Post date: [May 24, 2021, 7:43pm UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/1 "2021-05-24T19:43:33Z")

</div>

Hello,  
what is the fastest way to insert geographic data on a Maps in Kibana (elastic cloud)?  
I need to show a map with very specific points, maybe even with a custom icon and a label.

Thank you

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 24, 2021, 8:46pm UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/3 "2021-05-24T20:46:47Z")

</div>

Go To Maps  
Create  
Elasticsearch Add Documents  
Your index pattern will need to have either `geo_point` or `geo_shape` data.  
Add Layer.  
Then go in and customize the layer. Lots of options  
There is ability to apply colors labels icons.  
Aggregations filter etc.  
Tool Tips

@accateo go play with it you're good at this stuff already 🙂

Good docs [here](https://www.elastic.co/guide/en/kibana/current/maps.html)

Then you can save that map and add it as a panel in a dashboard

 ![Screen Shot 2021-05-24 at 1.58.34 PM](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e1402be3a50bda96cd66720e27b7488027a4534e.jpeg)

---

<div class="post-metadata">

### Author: ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)
#### Post date: [May 25, 2021, 7:11am UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/4 "2021-05-25T07:11:38Z")

</div>

I tried. I really don't understand what is the format for the data.

Is this the fastest way? Can I add a geo point via Dev Console in cloud? Can you tell me an example JSON?

Thanks

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [May 25, 2021, 10:20am UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/5 "2021-05-25T10:20:28Z")

</div>

hi @accateo you have different options:

### Create a GeoJSON file from scratch

Load a file in [GeoJSON](https://geojson.org/) format from your computer in Kibana Maps . You can create a sample dataset pretty quickly using for example [http://geojson.io](http://geojson.io).

![Peek 2021-05-25 11-52](https://us1.discourse-cdn.com/elastic/original/3X/a/f/aff0c1cc110f005c4968e14b195f402c9ba98dd5.gif)

### Create a GeoJSON from CSV

You can use [Mapshaper](https://github.com/mbloch/mapshaper) to convert a CSV with coordinates in columns into a GeoJSON

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/e/ce22b3af7d533a4e32053c6ae9ea8d2cedcd77ca.png)

### Import a CSV using File

[Since](https://github.com/elastic/kibana/pull/77117) Kibana 7.10, file importer in the Machine Learning application will automatically detect `lon/lat` fields and will set up the pipeline and mappings to import a CSV with coordinates

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

### Pushing documents directly

You can always create your index manually (the mapping needs to be set beforehand) and use the regular API endpoints to add documents with [`geo_point`](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html) or [`geo_shape`](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html) fields. Check the docs for the different ways to define them.

---

<div class="post-metadata">

### Author: ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)
#### Post date: [May 25, 2021, 10:35am UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/6 "2021-05-25T10:35:13Z")

</div>

How can I change color of the marker based on value?

What kind of field do I have to put in my index?

Thanks

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [May 25, 2021, 10:54am UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/7 "2021-05-25T10:54:32Z")

</div>

Take a look at [this doc](https://www.elastic.co/guide/en/kibana/current/vector-style.html). It really depends on the type of data you want to represent:

- **Categorical** data is usually stored as `keyword` fields and they are represented by a palette of different colors. Example: flight positions by origin country

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/4/647140e2da78216e095b939d1592773798b237e0.jpeg)

- **Quantitative** data is usually stored as `number` and they are represented as a range of colors. Example: flight positions by altitude

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f8daae4d9802699414116110ed056f2a8e034e95.jpeg)

Same applies to aggregated data. If you have a number metric it should be a range (count, averages, etc) but if you do a top terms aggregation then your map should represent them using a palette of colors.

---

<div class="post-metadata">

### Author: ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)
#### Post date: [May 25, 2021, 11:01am UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/8 "2021-05-25T11:01:11Z")

</div>

Ok, so there is no way to set a specific RGB color to every document.

Two last questions:

- is it possibile to add an URL link to a marker?
- is it possible to add a custom icon for the marker?

Thanks

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [May 25, 2021, 11:08am UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/9 "2021-05-25T11:08:49Z")

</div>

> [@accateo](#):
>
> Ok, so there is no way to set a specific RGB color to every document.

Unfortunately not at this moment, see this [other recent discussion](https://discuss.elastic.co/t/using-colour-values-from-within-the-document-itself/273094/5)

> [@accateo](#):
>
> is it possibile to add an URL link to a marker?

Yes, you can add tooltips, and they honor [Kibana String field formatters](https://www.elastic.co/guide/en/kibana/current/field-formatters-string.html) so they can render URLs and images.

> [@accateo](#):
>
> is it possible to add a custom icon for the marker?

Not at this moment, sorry.

---

<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: [November 4, 2022, 8:30am UTC](https://discuss.elastic.co/t/maps-kibana-with-geo-point/273862/10 "2022-11-04T08:30:52Z")

</div>


