Fixed broken token replacer function.

This commit is contained in:
orangemug
2018-07-28 16:36:01 +01:00
parent 0384181ee1
commit a7620f83a6
2 changed files with 2 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ function replaceSourceAccessToken(mapStyle, key, opts={}) {
function replaceAccessTokens(mapStyle, opts={}) {
let changedStyle = mapStyle;
Object.keys(tokens).forEach((tokenKey) => {
Object.keys(mapStyle.sources).forEach((tokenKey) => {
changedStyle = replaceSourceAccessToken(changedStyle, tokenKey, opts);
})