Use API-key for mapbox sattelite

This commit is contained in:
Pieter Vander Vennet 2023-03-19 13:37:28 +01:00
parent a69f32726c
commit 2e008800cd

View file

@ -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
} }