Hi @zidane28, today @nickpeihl is out of the office but I've looked into your case and I can say that I can't reproduce your issue, but let me share more details because I see a small difference in the configuration for Kibana.
First I downloaded the World Countries dataset from Elastic Map Service and started seving it locally using the same http-server
web server Nick mentioned earlier with CORS enabled:
$ curl --compressed https://vector.maps.elastic.co/files/world_countries_v1.geo.json \
> world_countries_v1.geo.json
$ npx http-server -p 8085 --cors="kbn-version" .
Then I started an almost zero configuration Elasticsearch docker cluster:
$ docker run --rm --network host \
-e "discovery.type=single-node" \
docker.elastic.co/elasticsearch/elasticsearch:7.5.1
rm
will remove the image when it's closed and network host
allows to expose the image ports as if they were run by localhost
.
Then I used this configuration kibana.yml
:
map:
includeElasticMapsService: false
tilemap:
options:
maxZoom: 18
attribution: Stamen
url: http://a.tile.stamen.com/watercolor/{z}/{x}/{y}.png
regionmap:
layers:
- name: "World Borders"
attribution: "osm"
url: "http://localhost:8085/world_countries_v1.geo.json"
fields:
- name: "iso3"
description: "ISO3"
- name: "iso2"
description: "ISO2"
- name: "name"
description: "label"
- name: "Denmark"
attribution: "osm"
url: "http://localhost:8085/denmark_regions_v1.geo.json"
fields:
- name: "iso_3166_2"
description: "ISO 3166-2"
- name: "label_en"
description: "label"
Finally started another temporal Docker image that uses this config:
$ docker run --rm --network host \
-v "$(pwd)/kibana.yml:/usr/share/kibana/config/kibana.yml" \
docker.elastic.co/kibana/kibana:7.5.1
With this fresh installation, I could add the example flights
data to have some data with a join field available and create a Region map that offers both custom layers on top of the custom base map.
From your last configuration what I see is that maybe you are not disabling EMS correctly because you placed the key under regionmap
instead of under map
.
To confirm this, you can see that you have effectively removed EMS if your region map or the Maps application does not show any basemap at all unless you configure map.tilemap.url
as I shared. Without the tilemap
section you should see something like this:
I tried this configuration running 7.4.2
, 7.5.0
, and 7.5.1
on the Docker commands and it always run correctly.
Let us know if this helps.