Skip to content

Commit

Permalink
Fix for missing fonts in offline maps
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Jan 8, 2024
1 parent 992fafb commit 56918a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/plugins/BasemapOfflineDetailsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const BasemapOfflineDetailsPlugin = makeExtendSchemaPlugin((build) => {
.glyphs!.replace("{fontstack}", stack)
.replace("{range}", "0-255");
if (/^mapbox:/.test(style.glyphs!)) {
url = `https://api.mapbox.com/fonts/v1/mapbox/${encodeURIComponent(
url = `https://api.mapbox.com/fonts/v1/mapbox/${encodeURI(
stack
)}/0-255.pbf?access_token=${apiKey}`;
}
Expand Down

0 comments on commit 56918a5

Please sign in to comment.