Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
2b3920c3
Commit
2b3920c3
authored
Oct 24, 2025
by
Eric Duminil
Browse files
OSM Map wasn't displayed anymore on many systems.
parent
5b661fce
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
2b3920c3
...
@@ -24,7 +24,8 @@ const regionChooser = (function () {
...
@@ -24,7 +24,8 @@ const regionChooser = (function () {
}
}
var
osm_layer
=
new
ol
.
layer
.
Tile
({
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
'
);
var
kml_source
=
utils
.
read_kml
(
fromJavaFX
?
undefined
:
'
data/citygml_hulls.kml
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment