mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 07:30:00 +00:00
Change Maptiler URLs
This commit is contained in:
@@ -101,7 +101,7 @@ function replaceAccessTokens(mapStyle, opts={}) {
|
||||
changedStyle = replaceSourceAccessToken(changedStyle, sourceName, opts);
|
||||
})
|
||||
|
||||
if (mapStyle.glyphs && mapStyle.glyphs.match(/\.tilehosting\.com/)) {
|
||||
if (mapStyle.glyphs && mapStyle.glyphs.match(/\.maptiler\.com/)) {
|
||||
const newAccessToken = getAccessToken("openmaptiles", mapStyle, opts);
|
||||
if (newAccessToken) {
|
||||
changedStyle = {
|
||||
|
||||
Reference in New Issue
Block a user