mirror of
https://github.com/maputnik/editor.git
synced 2026-06-14 19:27:25 +00:00
Merge remote-tracking branch 'upstream/master' into fix/issue-110-update-mapbox-style-spec
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ function replaceAccessToken(mapStyle) {
|
||||
}
|
||||
const changedStyle = {
|
||||
...mapStyle,
|
||||
glyphs: mapStyle.glyphs.replace('{key}', accessToken),
|
||||
glyphs: mapStyle.glyphs ? mapStyle.glyphs.replace('{key}', accessToken) : mapStyle.glyphs,
|
||||
sources: changedSources
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user