Skip to content

stadiamaps/flutter_map_demo

Repository files navigation

fleaflet_demo

An example Flutter project demonstrating how to use the flutter_map library with Stadia Maps. This loosely replicates the clustering example for MapLibre GL JS.

Getting Started

You will need to set an API key in main.dart before running the app. You can sign up for a free Stadia Maps API key via our Client Dashboard. Otherwise, run it like any other Flutter app.

This project is a starting point for a Flutter application, but is by no means a comprehensive guide to all there is to know about Flutter Map. Please refer to the project (linked above) and the following resources for getting started with Flutter.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

We have included both local and remote vector tile rendering widgets as an example of how to ship a local style with your Flutter app. See local_vector_tile_layer.dart. You can switch out the vector layer in main.dart to see it in action.

Gotchas

For completeness, this repo includes both raster and vector examples (via a tab bar). Note that the vector tile rendering is performed via a plugin which is still in development, and may not support some advanced features and have rendering bugs.

Additionally, rotation on macOS may be inverted. See this PR for details. This will be fixed in an upcoming Flutter release.

About

Demo project illustrating the use of flutter_map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published