# Geo-IP Map visualization

**URL:** https://discuss.elastic.co/t/geo-ip-map-visualization/302914
**Category:** Kibana
**Tags:** maps
**Created:** [April 21, 2022, 1:11pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914 "2022-04-21T13:11:59Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Bo-Wyatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bo-wyatt/32/87748_2.png) [@Bo-Wyatt](https://discuss.elastic.co/u/Bo-Wyatt)
#### Post date: [April 21, 2022, 1:11pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/1 "2022-04-21T13:11:59Z")

</div>

Hello, I have different fields with Geo-IP data: Latitude, Longitude, Country Code, Continent code and more. How can I build a map based on that? I've tried the "Create new Maps" option but all the visualization options ask me for geospatial data.

---

<div class="post-metadata">

### Author: ![Bo-Wyatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bo-wyatt/32/87748_2.png) [@Bo-Wyatt](https://discuss.elastic.co/u/Bo-Wyatt)
#### Post date: [April 21, 2022, 2:40pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/2 "2022-04-21T14:40:03Z")

</div>

Ok, I've managed to generate geopoint info but I want to only mark info by country (don't draw every shape for every coordinate).

---

<div class="post-metadata">

### Author: ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)
#### Post date: [April 21, 2022, 3:42pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/3 "2022-04-21T15:42:38Z")

</div>

Hi @Bo-Wyatt ,

I believe the following docs contains valuable information around what you're trying to achieve [Build a map to compare metrics by country or region | Kibana Guide [8.1] | Elastic](https://www.elastic.co/guide/en/kibana/current/maps-getting-started.html#maps-getting-started)

Cheers

---

<div class="post-metadata">

### Author: ![Bo-Wyatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bo-wyatt/32/87748_2.png) [@Bo-Wyatt](https://discuss.elastic.co/u/Bo-Wyatt)
#### Post date: [April 21, 2022, 4:14pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/4 "2022-04-21T16:14:06Z")

</div>

Very helpful, thanks. Is it possible to only show circles (count) grouped by country and add thresholds to the metrics? (to color different sizes)

---

<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: [April 25, 2022, 11:19am UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/5 "2022-04-25T11:19:42Z")

</div>

You want to render the map using points instead of country boundaries, right?

You can download the countries GeoJSON file from [https://maps.elastic.co](https://maps.elastic.co) and use [mapshaper](https://github.com/mbloch/mapshaper) to convert from polygons into points:

```auto
mapshaper -i world_countries_v7.geo.json -points -o world_countries_v7_points.geo.json

```

Then you can import that file into Elastic Maps and use a [Term Join](https://www.elastic.co/guide/en/kibana/current/terms-join.html) layer to join this index with your dataset using the country code. The default aggregation will render points based in the count and from there you can style the size with a default classification or your own color ramp and values.

Hope it helps!!

---

<div class="post-metadata">

### Author: ![Bo-Wyatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bo-wyatt/32/87748_2.png) [@Bo-Wyatt](https://discuss.elastic.co/u/Bo-Wyatt)
#### Post date: [April 25, 2022, 1:15pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/6 "2022-04-25T13:15:37Z")

</div>

That sounds great, thanks! Which layer should I use to import that file?

EDIT: I've used "Upload File" then joining by Country code. There's any chance to make the points bigger or smaller (or other color) based on count value?

---

<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: [April 25, 2022, 1:31pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/7 "2022-04-25T13:31:10Z")

</div>

Sure take a look at this documentation and let us know if there's any trouble

> **[Vector styling | Kibana Guide \[8.1\] | Elastic](https://www.elastic.co/guide/en/kibana/current/vector-style.html)**
>
> Add interactive capabilities to your dashboard, such as controls that allow you to apply dashboard-level filters, and drilldowns that allow you to navigate to other dashboards and external websites.

---

<div class="post-metadata">

### Author: ![Bo-Wyatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bo-wyatt/32/87748_2.png) [@Bo-Wyatt](https://discuss.elastic.co/u/Bo-Wyatt)
#### Post date: [April 25, 2022, 5:29pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/8 "2022-04-25T17:29:50Z")

</div>

That's very helpful, a few thinks:

Can I change the "Label" position? By default is centered inside the "Symbol".  
Can I determinate "Threshold" based on the value an the size of the "Symbol"?  
Can I change the opacity of the "Fill Color" ?  
Example of question n°1  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/0/80de4d64aef6168c9ed3b0412cfc2c0598cba106.png)  
Based on all this questions, I want to achieve something like this:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/2/e210d860a7519eed42fe9b717e3151ae37ccd190.png)

---

<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: [April 26, 2022, 10:23am UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/9 "2022-04-26T10:23:01Z")

</div>

> [@Bo-Wyatt](#):
>
> Can I change the "Label" position? By default is centered inside the "Symbol".

No, label position is not configurable.

> [@Bo-Wyatt](#):
>
> Can I determinate "Threshold" based on the value an the size of the "Symbol"?

What do you mean? The size of the symbol is driven by the metric and the min and max values in the UI.

> [@Bo-Wyatt](#):
>
> Can I change the opacity of the "Fill Color" ?

You can change the opacity of the full layer in the top of the panel, but you cannot set individual values.

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

On the other hand you can make the **fill** or the **border** fully transparents by deleting the color.

![Peek 2022-04-26 12-21](https://us1.discourse-cdn.com/elastic/original/3X/2/9/292270ff6e2ae9a6c0e36e62621449bed59b317e.gif)

---

<div class="post-metadata">

### Author: ![Bo-Wyatt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bo-wyatt/32/87748_2.png) [@Bo-Wyatt](https://discuss.elastic.co/u/Bo-Wyatt)
#### Post date: [April 26, 2022, 4:44pm UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/10 "2022-04-26T16:44:22Z")

</div>

Sorry I couldn't answer on the same format, here's in order:

- That's a shame, It would be great to position the label on top or bottom.
- I mean, a more specific size for each value, not something between 1 or 100px, some value to determinate the size based on thresholds (Based on a Count metric, 10,50,100 and so on of count values).
- That's a shame too, It will be good to have more personalization on this topics.

Besides this small issues, I think I'm on the right path to acomplish what I want. 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: [April 27, 2022, 11:07am UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/11 "2022-04-27T11:07:03Z")

</div>

Please feel free to fill separate [enhancement requests](https://github.com/elastic/kibana/issues/new?&template=Feature_request.md) capturing your use case and requirements, they help us a lot to understand users necessities.

> **[Build software better, together](https://github.com/elastic/kibana/issues/new?&template=Feature_request.md)**
>
> GitHub is where people build software. More than 73 million people use GitHub to discover, fork, and contribute to over 200 million projects.

---

<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: [May 25, 2022, 11:07am UTC](https://discuss.elastic.co/t/geo-ip-map-visualization/302914/12 "2022-05-25T11:07:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
