Put back key_query

I think this is needed if ngnix "API Key Authentication" is used
This commit is contained in:
acalcutt 2023-01-20 10:15:38 -05:00
parent 51560ba756
commit 162f3fc42b

View file

@ -36,7 +36,7 @@
var q = (location.search || '').substr(1).split('&');
var preference = q.indexOf('raster') >= 0 ? 'raster' : 'vector';
if (preference == 'vector') {
maplibregl.setRTLTextPlugin('{{public_url}}mapbox-gl-rtl-text.js');
maplibregl.setRTLTextPlugin('{{public_url}}mapbox-gl-rtl-text.js{{&key_query}}');
var map = new maplibregl.Map({
container: 'map',
style: '{{public_url}}styles/{{id}}/style.json' + keyParam,