I build my own offline OpenStreetMap server in a virutal machine following switc2osm tutorial and it works fine.
the tutorial here : switch2osm
I build a second virtual machine whith Elastic search and kibana wishing to connect kibana to my OSM serveur.
I use the following html page to be sure there is no problem to access my OSM serveur from the Elastic one :
sample_leaflet.html with this configuration :
But in Kibana the map doesn't show, it seems to have no error messages:
my configuration file :
# Ma configuration personnelle pour la cartographie OSM offline
map.includeElasticMapsService: true
map.tilemap.url: "http://192.168.1.25/hot/{z}/{x}/{y}.png"
map.tilemap.options.attribution: "© [OpenStreetMap] (http://www.openstreetmap.org/copyright) contributors"
map.tilemap.options.maxZoom: 18
I tryed with 'map.includeElasticMapsService: false' first, with the same result witch is this :
Can you open the developer tools and check in the network tab whether your browser is attempting to download tiles from your configured server?
It's possible the request is blocked by the CSP (Content security policy) of Kibana - if that's the case it should be evident from the errors in the Network tab.
The error message indicates the issue here is your custom tile map server - it needs to set the cors header so Kibana is allowed to download the tiles.
It works in the "sample_leaflet.html" example from your original post because the websites loaded via "file://" are handled differently.
How to set the cors header depends on how your tile server works - the tutorial you linked uses apache, here is a tutorial how to enable cross origin requests: https://enable-cors.org/server_apache.html
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.