stadiamaps / flutter-maplibre-gl-example

An example illustrating the MapLibre GL Native wrapper for Flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_maplibre_demo

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.)

Getting Started

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.

Gotchas

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.

About

An example illustrating the MapLibre GL Native wrapper for Flutter

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 76.1%Language:HTML 11.3%Language:Ruby 7.9%Language:Swift 3.8%Language:Kotlin 0.7%Language:Objective-C 0.2%