mapbox_gl_flutter_web 0.1.2 copy "mapbox_gl_flutter_web: ^0.1.2" to clipboard
mapbox_gl_flutter_web: ^0.1.2 copied to clipboard

Platformweb

Flutter Web bridge for Mapbox GL JS. Pair with mapbox_maps_flutter on mobile via conditional imports to render the same map on every platform.

Changelog #

0.1.2 — 2026-05-25 #

  • Add typedef MapWidget = MapboxMapWidget. The conditional-import pattern in the README pairs this package with mapbox_maps_flutter, whose embedding widget is MapWidget; the alias means consumers don't have to as MapWidget rename it in their own code.

0.1.1 — 2026-05-25 #

  • Shorten the pubspec description to satisfy pana's "Follow Dart file conventions" check (60–180 character range). No code changes.

0.1.0 — 2026-05-25 #

Initial public release. Extracted from a production Flutter app (SpeakX) where it ships the same Mapbox surface that mapbox_maps_flutter provides on Android and iOS, but rendered through mapbox-gl-js in the browser via dart:js_interop.

Supports the subset of the Mapbox API needed for clustered point maps:

  • Map widget embedding via HtmlElementView + a ResizeObserver.
  • Camera (flyTo / easeTo / getCameraState / setBounds).
  • Coordinate ↔ pixel projection.
  • cameraForCoordinatesPadding (computed from a bounding box on web).
  • Style + source/layer management (GeoJSON sources, Symbol + Line layers, cluster properties, runtime style-image registration).
  • Hit testing via queryRenderedFeatures.
  • Style-import config (e.g. Mapbox Standard lightPreset).
  • Scale-bar / compass / gesture toggle controls.

Out of scope (PRs welcome): annotations API, location puck, terrain / fog, raster sources, 3D model layers.

1
likes
160
points
134
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter Web bridge for Mapbox GL JS. Pair with mapbox_maps_flutter on mobile via conditional imports to render the same map on every platform.

Repository (GitHub)
View/report issues

Topics

#mapbox #maps #web #js-interop #flutter-web

License

MIT (license)

Dependencies

flutter

More

Packages that depend on mapbox_gl_flutter_web