Skip to content
pubscout

mapbox_gl

0.16.0, released 5 years ago by an unverified publisher

Flutter plugin for integrating Mapbox Maps on Android, iOS, and Web.

WASM-ready
$ flutter pub add mapbox_gl
Source repository

What it does

Integrates interactive and customizable vector maps inside a Flutter widget using Mapbox GL Native on mobile and Mapbox GL JS on web. Supports styles, cameras, gestures, various layers (symbol, circle, line, fill, raster), and offline regional downloading.

AI-written summary of version 0.16.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need Mapbox maps inside your Android, iOS, or web Flutter application.
  • You require custom vector map styles, layers, and symbol annotations.
  • You need offline map tile downloading and sideloading capabilities.

Skip it when

  • You require official Mapbox supported products (this is community-driven).
  • You want to use Google Maps instead.
  • You need a fully declarative mapping solution without imperative controllers.

Strengths

  • Supports Android, iOS, and Web platforms.
  • Provides a wide range of layer types (Raster, Symbol, Circle, Line, Fill, Hillshade).
  • Includes support for offline region downloading and sideloading.

Weaknesses

  • Community-driven and not an official Mapbox product.
  • Requires manual setup of secret access tokens with Downloads: Read scope for mobile builds.
  • Does not support all native Mapbox API features (e.g., style DSL, heatmap layers).

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
3

Requires a secret Mapbox access token with Downloads: Read scope for Android/iOS builds, a public token passed via --dart-define, configuration of index.html for Web, and specific permissions in AndroidManifest.xml and Info.plist for location features.

MapboxMap(
  accessToken: const String.fromEnvironment("ACCESS_TOKEN"),
)

Alternatives

Packages that do the same job and could replace mapbox_gl.

  • google_maps_flutter

    If you prefer using Google Maps instead of Mapbox for your application.

  • flutter_map

    If you want a pure Dart interactive map solution using OpenStreetMap tiles without native SDK setup complexities.