mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 18:31:17 +01:00
Do not barf if glyphs url not set #113
This commit is contained in:
parent
56f1e58df0
commit
732d231c78
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue