An example Flutter project demonstrating how to use the MapLibre GL wrapper with annotation clustering and offline caching. (Note that offline management is only available on mobile platforms.)
You will need to set an API key in map.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 MapLibre GL. 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.
There appear to be a few issues/inconsistencies between web and mobile. This repo is currently tested against iOS and will have some quirks on Android and web as a result. We have opened issues with the library to resolve these.
Finally, note that iOS Simulator currently has some issues rendering maps due to rendering library issues, particularly on Apple Silicon. Reworking the rendering to use Metal is actively underway upstream, which will solve the simulator issues. For now, we recommend running on a device.