Please note that this project is community driven and is not an official Mapbox product. We welcome feedback and contributions.
This Flutter plugin for mapbox-gl-native enables embedded interactive and customizable vector maps inside a Flutter widget by embedding Android and iOS views.
git clone email@example.com:mapbox/flutter-mapbox-gl.git
cd flutter_mapbox/example && flutter run
This project uses Mapbox vector tiles, which requires a Mapbox account and a Mapbox access token. Obtain a free access token on your Mapbox account page.
After you get the key, place it in project's Android directory:
Add this lines to your Info.plist
<key>io.flutter.embedded_views_preview</key> <true/> <key>MGLMapboxAccessToken</key> <string>YOUR_TOKEN_HERE</string>
This README file currently houses all of the documentation for this Flutter project. Please visit mapbox.com/android-docs if you'd like more information about the Mapbox Maps SDK for Android and mapbox.com/ios-sdk for more information about the Mapbox Maps SDK for iOS.
This repository's example library is currently the best place for you to find reference code for this project.
We welcome contributions to this repository!
If you're interested in helping build this Mapbox/Flutter integration, please read the contribution guide to learn how to get started.
Demonstrates how to use the mapbox_gl plugin.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Add this to your package's pubspec.yaml file:
dependencies: mapbox_gl: ^0.0.2
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.0.3||Mar 30, 2019|
|0.0.2||Mar 23, 2019|
|0.0.1||May 7, 2018|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/src/ui.dart. (-3.45 points)
lib/src/ui.dart reported 7 hints, including:
line 9 col 3: Prefer using /// for doc comments.
line 15 col 3: Prefer using /// for doc comments.
line 21 col 3: Prefer using /// for doc comments.
line 27 col 3: Prefer using /// for doc comments.
line 33 col 3: Prefer using /// for doc comments.
flutter format to format
flutter format to format
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.