mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 12:27:45 +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 = {
|
const changedStyle = {
|
||||||
...mapStyle,
|
...mapStyle,
|
||||||
glyphs: mapStyle.glyphs.replace('{key}', accessToken),
|
glyphs: mapStyle.glyphs ? mapStyle.glyphs.replace('{key}', accessToken) : mapStyle.glyphs,
|
||||||
sources: changedSources
|
sources: changedSources
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue