mapbox_gl_flutter_web 0.1.0
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.