forked from MapComplete/MapComplete
Use API-key for mapbox sattelite
This commit is contained in:
parent
a69f32726c
commit
2e008800cd
1 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,14 @@ class DownloadEli extends Script {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(props.id === "Mapbox"){
|
||||||
|
/**
|
||||||
|
* This token is managed by Martin Reifer on the 'OpenStreetMap'-account on MapBox
|
||||||
|
*/
|
||||||
|
const token = "pk.eyJ1Ijoib3BlbnN0cmVldG1hcCIsImEiOiJjbGZkempiNDkyandvM3lwY3M4MndpdWdzIn0.QnvRv52n3qffVEKmQa9vJA"
|
||||||
|
props.url = props.url.replace("{apikey}", token)
|
||||||
|
}
|
||||||
|
|
||||||
if (props.url.toLowerCase().indexOf("apikey") > 0) {
|
if (props.url.toLowerCase().indexOf("apikey") > 0) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue