Links

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
To integrate with 3rd party mapping libraries, Stadia Maps provides an alternative to the normal 'Static Maps Base URL' for each map style.
The 'Raster XYZ PNGs' URL contains all the information and placeholders that flutter_map requires to display a map. Tiles requested through this endpoint consume the 'Styled Raster Map Tiles' credits.
Once you have the appropriate URL for your desired map style (see Styles), use it in a TileLayer's urlTemplate as normal.
Retina tiles (high-DPI) tiles are available. Use the URLs containing '@2x' instead of '{r}'. The maximum zoom level that Stadia Maps supports is 20, so it is recommended to set maxNativeZoom or maxZoom as such.
Consider using the RichAttributionWidget or SimpleAttributionWidgets, which meet the requirements.

Styles

Stadia Maps offers a variety of ready-made map styles that don't require customization. URLs are found with the style: see the available map styles. The URL should be used as above.

Vector Usage

Stadia Maps' also provides vector tiles. For more information about using vector tiles, please see Using Vector Tiles.
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.
© flutter_map Authors & Maintainers