leaflet-extras / leaflet-providers

An extension to Leaflet that contains configurations for various free tile providers.
https://leaflet-extras.github.io/leaflet-providers/preview/
BSD 2-Clause "Simplified" License
2.14k stars 666 forks source link

Map not showing on mobile. Do I need to register for an API? #360

Closed yansusanto closed 4 years ago

yansusanto commented 4 years ago

Is it a common occurrence that the map, while it display properly on desktop, doesn't show on mobile? I'm using the Stadia.AlidadeSmooth layer.

L.tileLayer.provider('Stadia.AlidadeSmooth').addTo(map);
brunob commented 4 years ago

Are you using an API key registred to your domain as required by stadia api ?

everything should work seamlessly as long as you have an active plan for your domain. ref https://docs.stadiamaps.com/raster/#displaying-a-map-leaflet

yansusanto commented 4 years ago

No, I'm not using an API. Do I need to? And if I need an API, why is it working fine with desktop without an API? Thanks for the response, @brunob

brunob commented 4 years ago

Do I need to?

Yes, as described in the stadia docs.

And if I need an API, why is it working fine with desktop without an API?

Because the stadia api seems to allow use on localhost or something like that.

brunob commented 4 years ago

No news, closing.