mirror of
https://github.com/maputnik/editor.git
synced 2026-01-06 13:30:03 +00:00
Added final bits for thunderforest integration
This commit is contained in:
@@ -55,6 +55,10 @@ function indexOfLayer(layers, layerId) {
|
||||
}
|
||||
|
||||
function getAccessToken(key, mapStyle, opts) {
|
||||
if(key === "thunderforest_transport" || key === "thunderforest_outdoors") {
|
||||
key = "thunderforest";
|
||||
}
|
||||
|
||||
const metadata = mapStyle.metadata || {}
|
||||
let accessToken = metadata['maputnik:'+key+'_access_token'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user