From 3e5a0e983a1c9d5fa6df19e6370b82a3145cb766 Mon Sep 17 00:00:00 2001 From: acalcutt Date: Fri, 20 Jan 2023 10:15:38 -0500 Subject: [PATCH] Put back key_query I think this is needed if ngnix "API Key Authentication" is used --- public/templates/viewer.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/viewer.tmpl b/public/templates/viewer.tmpl index b4834d9..08198ab 100644 --- a/public/templates/viewer.tmpl +++ b/public/templates/viewer.tmpl @@ -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,