Using Mapbox

'flutter_map' is in no way associated or related with Mapbox.

Mapbox's Maps home page: Mapbox's Maps pricing page: Mapbox's Maps documentation:

To display their map tiles, Mapbox usually provides a 'Style URL' for map styles. However, to integrate with 3rd-party APIs, they also provide a 'CARTO Integration URL', and tiles requested through this endpoint consume the 'Static Tiles API' quota. This URL needs no extra configuration to integrate with flutter_map.

The maximum zoom level that Mapbox supports is 22, so it is recommended to set maxNativeZoom or maxZoom as such.


Custom Styles

Mapbox supports creating and using custom styled maps through Studio.

  1. Create a custom style using the editor

  2. Click "Share...", or the share icon

  3. Choose between Draft or Production

  4. Scroll to the bottom of the dialog, and choose Third Party

  5. Select "CARTO" from the dropdown menu

  6. Click the copy button to copy the template URL

Configuring Retina Mode

The URL includes an '@2x' string, which forces usage of high-definition tiles on all displays, without extra setup.

Prebuilt Styles

Mapbox offers a variety of ready-made map styles that don't require customization. An example URL can be found in the example here.

This URL should be used as above, although you may need to insert the placeholders manually.

Last updated

© flutter_map Authors & Maintainers