stadiamaps / flutter_map_demo

Demo project illustrating the use of flutter_map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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


Languages

Language:C++ 36.4%Language:CMake 32.0%Language:Dart 18.8%Language:Ruby 4.6%Language:HTML 3.1%Language:C 2.4%Language:Swift 2.4%Language:Kotlin 0.2%Language:Objective-C 0.1%