Merge remote-tracking branch 'upstream/master' into fix/issue-110-update-mapbox-style-spec

This commit is contained in:
orangemug
2017-04-04 08:57:33 +01:00
6 changed files with 84 additions and 7 deletions
+1 -1
View File
@@ -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
}