use keyParam
This commit is contained in:
parent
3e5a0e983a
commit
debf034fa3
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@
|
||||||
var q = (location.search || '').substr(1).split('&');
|
var q = (location.search || '').substr(1).split('&');
|
||||||
var preference = q.indexOf('raster') >= 0 ? 'raster' : 'vector';
|
var preference = q.indexOf('raster') >= 0 ? 'raster' : 'vector';
|
||||||
if (preference == 'vector') {
|
if (preference == 'vector') {
|
||||||
maplibregl.setRTLTextPlugin('{{public_url}}mapbox-gl-rtl-text.js{{&key_query}}');
|
maplibregl.setRTLTextPlugin('{{public_url}}mapbox-gl-rtl-text.js' + keyParam);
|
||||||
var map = new maplibregl.Map({
|
var map = new maplibregl.Map({
|
||||||
container: 'map',
|
container: 'map',
|
||||||
style: '{{public_url}}styles/{{id}}/style.json' + keyParam,
|
style: '{{public_url}}styles/{{id}}/style.json' + keyParam,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue