Added final bits for thunderforest integration

This commit is contained in:
orangemug
2018-07-27 16:25:53 +01:00
parent fd59f42819
commit 0384181ee1
5 changed files with 23 additions and 4 deletions

View File

@@ -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'];