From cd41e2067b1653825cbe6e16f9c3433e241ccedc Mon Sep 17 00:00:00 2001 From: Craig Kochis Date: Mon, 29 Jul 2024 15:42:31 -0400 Subject: [PATCH] rely on the Authorization header to provide publishable key instead of query param (#175) --- src/ui/RadarMap.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/RadarMap.ts b/src/ui/RadarMap.ts index e867a9d..1593aef 100644 --- a/src/ui/RadarMap.ts +++ b/src/ui/RadarMap.ts @@ -38,11 +38,11 @@ const defaultFitMarkersOptions: maplibregl.FitBoundsOptions = { const createStyleURL = (options: RadarOptions, mapOptions: RadarMapOptions) => { const style = mapOptions.style || DEFAULT_STYLE; - let url = `${options.host}/maps/styles/${style}?publishableKey=${options.publishableKey}` + let url = `${options.host}/maps/styles/${style}` if (mapOptions.language) { - url += `&language=${mapOptions.language}` + url += `?language=${mapOptions.language}` } - return url + return url; }; // check if style is a Radar style or a custom style