re-add baseurl, required bei maplibre-gl
This commit is contained in:
parent
450de42854
commit
e1634d16b8
1 changed files with 3 additions and 1 deletions
|
@ -75,6 +75,8 @@
|
||||||
{{/is_terrain}}
|
{{/is_terrain}}
|
||||||
{{#is_terrain}}
|
{{#is_terrain}}
|
||||||
|
|
||||||
|
let baseUrl = window.location.origin;
|
||||||
|
|
||||||
var style = {
|
var style = {
|
||||||
version: 8,
|
version: 8,
|
||||||
sources: {
|
sources: {
|
||||||
|
@ -90,7 +92,7 @@
|
||||||
},
|
},
|
||||||
"contour": {
|
"contour": {
|
||||||
"type": "vector",
|
"type": "vector",
|
||||||
"tiles": [ "{{public_url}}data/{{id}}/contour/{z}/{x}/{y}" ],
|
"tiles": [ baseUrl + "/data/{{id}}/contour/{z}/{x}/{y}" ],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"glyphs": "/fonts/{fontstack}/{range}.pbf",
|
"glyphs": "/fonts/{fontstack}/{range}.pbf",
|
||||||
|
|
Loading…
Reference in a new issue