From f6f5d41924684eb91e4aa07c70909cdd80eb33a7 Mon Sep 17 00:00:00 2001 From: Alan Holt Date: Mon, 3 Feb 2020 14:29:42 -0600 Subject: [PATCH] added Stadia information to readme excluded Stadia from demo page --- README.md | 3 +++ preview/preview.js | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b4c7644..f8b1a15f 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,9 @@ Please note that a public api key (`choisirgeoportail`) is used by default and c 4 aliases are also provided for common Geoportail resources : `GeoportailFrance`, `GeoportailFrance.orthos`, `GeoportailFrance.ignMaps` and `GeoportailFrance.parcels` (See index.html demo). +### Stadia Maps + +In order to use Stadia maps, you need to have an account, and whitelist your domain within your Stadia account settings. (see https://docs.stadiamaps.com/raster/#displaying-a-map-leaflet). # Attribution diff --git a/preview/preview.js b/preview/preview.js index 67efd9e6..11db616b 100644 --- a/preview/preview.js +++ b/preview/preview.js @@ -78,7 +78,12 @@ return true; } // reduce the number of layers previewed for some providers - if (providerName.startsWith('HERE') || providerName.startsWith('OpenWeatherMap') || providerName.startsWith('MapBox')) { + if ( + providerName.startsWith('HERE') + || providerName.startsWith('OpenWeatherMap') + || providerName.startsWith('MapBox') + || providerName.startsWith('Stadia') + ) { var whitelist = [ // API threshold almost reached, disabling for now. // 'HERE.normalDay',