mapbox_gl_flutter_web 0.1.2
mapbox_gl_flutter_web: ^0.1.2 copied to clipboard
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 withmapbox_maps_flutter, whose embedding widget isMapWidget; the alias means consumers don't have toas MapWidgetrename it in their own code.
0.1.1 — 2026-05-25 #
- Shorten the pubspec
descriptionto 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.