Skip to content

Commit

Permalink
rely on the Authorization header to provide publishable key instead o…
Browse files Browse the repository at this point in the history
…f query param (#175)
  • Loading branch information
kochis authored Jul 29, 2024
1 parent ebd7886 commit cd41e20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/RadarMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd41e20

Please sign in to comment.