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

Flutter Web bridge for Mapbox GL JS. Renders the same Mapbox style, sources, layers, and gestures the mapbox_maps_flutter native plugin exposes on Android and iOS, but in the browser via dart:js_inter [...]

Changelog #

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
0
points
143
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter Web bridge for Mapbox GL JS. Renders the same Mapbox style, sources, layers, and gestures the mapbox_maps_flutter native plugin exposes on Android and iOS, but in the browser via dart:js_interop. Designed to be paired with mapbox_maps_flutter using conditional imports so the same Flutter app can render the map on every platform.

Repository (GitHub)
View/report issues

Topics

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

License

unknown (license)

Dependencies

flutter

More

Packages that depend on mapbox_gl_flutter_web