From 2e008800cdee1ee6012e16a88f0ef3e6a34123f1 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 19 Mar 2023 13:37:28 +0100 Subject: [PATCH] Use API-key for mapbox sattelite --- scripts/downloadEli.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/downloadEli.ts b/scripts/downloadEli.ts index dc6501db2..d64e50c8b 100644 --- a/scripts/downloadEli.ts +++ b/scripts/downloadEli.ts @@ -32,6 +32,14 @@ class DownloadEli extends Script { 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) { continue }