From e249a3f67d21b7b0b1d62f0386a6de25e1010491 Mon Sep 17 00:00:00 2001 From: David Weber | geOps Date: Thu, 22 Oct 2020 19:09:42 +0200 Subject: [PATCH] add api key to sprite ressources in style json this make some setups easier becouse sprites can be handeld like any other ressources --- src/serve_style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serve_style.js b/src/serve_style.js index fb75ad8..050e9d1 100644 --- a/src/serve_style.js +++ b/src/serve_style.js @@ -43,7 +43,7 @@ module.exports = { } // mapbox-gl-js viewer cannot handle sprite urls with query if (styleJSON_.sprite) { - styleJSON_.sprite = fixUrl(req, styleJSON_.sprite, item.publicUrl, true); + styleJSON_.sprite = fixUrl(req, styleJSON_.sprite, item.publicUrl, false); } if (styleJSON_.glyphs) { styleJSON_.glyphs = fixUrl(req, styleJSON_.glyphs, item.publicUrl, false);