Commit 2b3920c3 authored by Eric Duminil's avatar Eric Duminil
Browse files

OSM Map wasn't displayed anymore on many systems.

parent 5b661fce
......@@ -24,7 +24,8 @@ const regionChooser = (function () {
}
var osm_layer = new ol.layer.Tile({
source: new ol.source.OSM()
// NOTE: when set to "anonymous" (the default), it could lead to the Browser not displaying any map
source: new ol.source.OSM({crossOrigin: null})
});
var kml_source = utils.read_kml(fromJavaFX ? undefined : 'data/citygml_hulls.kml');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment