parent
25702fb1dd
commit
6335abf36c
1 changed files with 4 additions and 1 deletions
|
@ -77,6 +77,9 @@
|
||||||
};
|
};
|
||||||
{{/is_terrain}}
|
{{/is_terrain}}
|
||||||
{{#is_terrain}}
|
{{#is_terrain}}
|
||||||
|
|
||||||
|
let baseUrl = window.location.origin;
|
||||||
|
|
||||||
var style = {
|
var style = {
|
||||||
version: 8,
|
version: 8,
|
||||||
sources: {
|
sources: {
|
||||||
|
@ -92,7 +95,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