# How to add a map by pointing to an external map server but not elastic map server?

**URL:** <https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416>\
**Category:** Kibana\
**Tags:** docker, maps\
**Created:** [October 4, 2023, 5:01pm UTC](https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416 "2023-10-04T17:01:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FredMir](https://avatars.discourse-cdn.com/v4/letter/f/f08c70/32.png) [@FredMir](https://discuss.elastic.co/u/FredMir)\
**Post date:** [October 4, 2023, 5:01pm UTC](https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416/1 "2023-10-04T17:01:55Z")

</div>

I want to add a map for data visualization by pointing to a map server already available by my company. I don't have access to internet and I don't want to download docker image for Elastic map server. How can I change the Kibana config file to point to that map server?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 4, 2023, 5:36pm UTC](https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416/2 "2023-10-04T17:36:16Z")

</div>

> [@FredMir](#):
>
> How can I change the Kibana config file to point to that map server?

You will need to change the `map.tilemap.url` in [`kibana.yml`](https://www.elastic.co/guide/en/kibana/current/settings.html#settings) file to point to your map server on the format it expects.

---

<div class="post-metadata">

**Author:** ![FredMir](https://avatars.discourse-cdn.com/v4/letter/f/f08c70/32.png) [@FredMir](https://discuss.elastic.co/u/FredMir)\
**Post date:** [October 5, 2023, 1:39pm UTC](https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416/3 "2023-10-05T13:39:38Z")

</div>

I changed the map.tilemap.url in kibana.yml and pointed to the map server ip address. I can see the geo data as dots, but it doesn't show any borders for countries, it just adds based on lat/long on a plain page.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [October 6, 2023, 3:06pm UTC](https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416/4 "2023-10-06T15:06:52Z")

</div>

Hi Fred. Make sure you are setting the URL correctly including the {z}, {x}, {y} templates. There's more info about this setting in [this blog post](https://www.elastic.co/blog/custom-basemaps-for-region-and-coordinate-maps-in-kibana).

---

<div class="post-metadata">

**Author:** ![FredMir](https://avatars.discourse-cdn.com/v4/letter/f/f08c70/32.png) [@FredMir](https://discuss.elastic.co/u/FredMir)\
**Post date:** [October 10, 2023, 2:19pm UTC](https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416/5 "2023-10-10T14:19:50Z")

</div>

Hi Nick,

I added the following lines to kibana.yml:

map.includeElasticMapService: False  
map.tilemap.url: [http://131.150.227.25:83/service/wms/{z}/{x}/{y}.png](http://131.150.227.25:83/service/wms/%7Bz%7D/%7Bx%7D/%7By%7D.png)  
map.tilemap.options.maxZoom: 18

Is this correct:  
Do I need to add layers Configured Tile Map or Tile Map Service?  
It doesn't change the map and still cannot show the border lines.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [October 10, 2023, 8:55pm UTC](https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416/6 "2023-10-10T20:55:20Z")

</div>

Hi Fred. It looks like you are using a Web Map Service (WMS). The `map.tilemap.url` config expects a Tile Map Service (TMS). This config is not compatible with Web Map Services.

However, you can [add a WMS layer from the Maps interface](https://www.elastic.co/guide/en/kibana/current/tile-layer.html). Try adding a WMS layer and using `http://131.150.227.25:83/service/wms/` as the URL.

---

<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 7, 2023, 8:56pm UTC](https://discuss.elastic.co/t/how-to-add-a-map-by-pointing-to-an-external-map-server-but-not-elastic-map-server/344416/7 "2023-11-07T20:56:11Z")

</div>

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