Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added Stadia information to readme #345

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
brunob marked this conversation as resolved.
Show resolved Hide resolved

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

Expand Down
7 changes: 6 additions & 1 deletion preview/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down