Using Stadia Maps
'flutter_map' is in no way associated or related with Stadia Maps.
Stadia Maps' home page: stadiamaps.com Stadia Maps' pricing page: stadiamaps.com/pricing Stadia Maps' documentation page: docs.stadiamaps.com
Stadia Maps is a popular tiered-payment (with free-tier) tile provider solution, especially for generic mapping applications. Setup with 'flutter_map' is relatively straightforward, but this page provides an example anyway.
Pre-made Styles
Stadia Maps offers a variety of map styles out of the box, that don't require customization.
For normal usage with raster tiles, use the Raster URL for the style you like, then follow the Normal (raster) instructions.
For more information about using the vector tiles, see Vector Usage.
Custom Styles
You can find details on Stadia Maps' support for custom styles at the bottom of the map styles documentation.
Usage
Normal (raster)
You should remove the 'api_key' (found at the end of the URL) from the URL for readability. Instead, pass it to additionalOptions
.
Vector Usage
However, please note that this method of integration is still experimental. Many of the Stadia Maps styles utilize advanced features of the Mapbox GL JSON style language which are not yet well-supported.
If you are interested in contributing to this, please join the Discord server.
Last updated