mapbox_maps_flutter_web
library
Classes
-
JSMapEvents
-
Mapbox GL JS event names that the web implementation subscribes to.
Kept as constants so callers can reference one name from bindings and
adapters without a typo-prone duplicate string.
-
MapboxMapsFlutterWeb
-
-
MapWebWidget
-
Extension Types
-
FilterSpecification
-
A GL JS
FilterSpecification: an expression array such as
['==', ['get', 'id'], 3]. The platform interface carries filters as
JSON-encoded strings, so fromJson parses one into the array GL JS wants.
-
JSCameraForBoundsOptions
-
Options accepted by
JSMap.cameraForBounds.
-
JSCameraOptions
-
Mapbox GL JS camera options for jumpTo/easeTo/flyTo.
-
JSControl
-
Marker type for any object implementing GL JS's
IControl interface
(the contract accepted by Map.addControl / Map.removeControl).
-
JSControlPosition
-
Corner of the map a control is attached to, as accepted by
Map.addControl. Closed set — an invalid position won't compile.
-
JSDictionary
-
JS plain object viewed as a key/value dictionary. Use toDart to
convert into a Dart Map.
-
JSDragRotateHandler
-
dragRotate handler — adds disablePitch/enablePitch for turning off
ctrl+drag pitch while keeping ctrl+drag rotate on, and
disableRotation/enableRotation for the reverse.
-
JSFeatureLayer
-
The style layer a JSMapFeature was rendered in.
-
JSFeatureSelector
-
GL JS
FeatureSelector — identifies a feature within a style source.
-
JSFeatureStateFeature
-
GL JS feature-state target:
FeatureSelector | GeoJSONFeature | TargetFeature.
-
JSFitBoundsOptions
-
Mapbox GL JS fitBounds options.
-
JSGeolocateControl
-
mapboxgl.GeolocateControl. Renders the user-location puck and accuracy
ring; subscribes to navigator.geolocation.watchPosition while attached
to the map. positionOptions, trackUserLocation, showUserLocation,
followUserLocation, and showButton are never changed after
construction, so only the two settings the handler updates at runtime
have setters below.
-
JSGeolocateControlOptions
-
Options passed to JSGeolocateControl's constructor.
-
JSGeolocateEvent
-
Payload of
GeolocateControl's 'geolocate' event.
-
JSGeolocateEventType
-
Events emitted by JSGeolocateControl. Closed set — invalid event
names won't compile at the call site.
-
JSGeometry
-
GeoJSON geometry object. Same shape as JSDictionary but kept as a
distinct nominal type so geometry-specific helpers can be added here.
-
JSGestureEventData
-
Payload of camera-surface gesture events (
drag* / zoom* / rotate*
/ pitch*). Carries only originalEvent; point/lngLat are absent.
-
JSGestureHandler
-
One of GL JS's toggleable gesture handlers (
dragPan, dragRotate,
scrollZoom, touchPitch, touchZoomRotate, doubleClickZoom).
-
JSIdentifier
-
Identifier value — GL JS types feature/source ids as
string | number.
Numeric ids are treated as integers (the typical tile-feature shape).
-
JSIndoorControl
-
mapboxgl.IndoorControl — the built-in floor-selector ornament.
-
JSIndoorControlFloor
-
-
JSIndoorControlModel
-
Payload of JSIndoorEvents.selectorUpdate / JSIndoorManager.getControlState.
-
JSIndoorEvents
-
-
JSIndoorManager
-
Style.indoorManager — experimental, undocumented in GL JS.
-
JSInteraction
-
GL JS
Interaction config passed to JSMap.addInteraction.
-
JSInteractionEvent
-
Event payload delivered to a
JSInteraction.handler.
-
JSKeyboardHandler
-
Keyboard handler — adds independent
disablePan/enablePan,
disableBearing/enableBearing, and disablePitch/enablePitch so
arrow-key pan, Shift+arrow rotate, and Shift+arrow pitch can each be
toggled without affecting the other two (or +/- zoom).
-
JSLngLat
-
-
JSLngLatBounds
-
mapboxgl.LngLatBounds — a rectangular geographical area defined by its
south-west and north-east corners.
-
JSLngLatPair
-
[longitude, latitude] array pair — GL JS's LngLatLike array form.
Used wherever the engine expects a coordinate as a 2-element array
rather than a JSLngLat instance (e.g. ImageSource.coordinates,
StyleSpec.center).
-
JSMap
-
-
JSMapBaseEvent
-
Shared shape of every Mapbox GL JS map event. Carries
type; the full
object also exposes target: JSMap but we reach the map via closure
capture instead, so it isn't declared here.
-
JSMapDataEvent
-
Payload of the
sourcedata event (and the parent data event before
the Map re-fires it as sourcedata/styledata). Only the fields the
adapters read are declared.
-
JSMapFeature
-
A GL JS
MapboxGeoJSONFeature as returned by the feature-query methods.
-
JSMapMoveEvent
-
Payload of camera-related events (
movestart, move, moveend).
Programmatic moves leave originalEvent null; keyboard-driven moves
carry a KeyboardEvent, pointer-driven ones a MouseEvent/TouchEvent.
-
JSMapOptions
-
-
JSNavigationControl
-
mapboxgl.NavigationControl. GL JS has no standalone compass control —
the compass is a button inside this one, which is why the compass handler
constructs it with showZoom: false.
-
JSNavigationControlOptions
-
Options passed to JSNavigationControl's constructor. All three are
construction-only in GL JS.
-
JSPadding
-
Mapbox GL JS padding object.
-
JSPositionOptions
-
Browser Geolocation API
PositionOptions. GL JS forwards this to
navigator.geolocation.watchPosition.
-
JSQueryGeometry
-
Geometry argument to
queryRenderedFeatures: a JSScreenPoint, or a
two-element JSArray of JSScreenPoint forming a bounding box.
-
JSQueryRenderedFeaturesOptions
-
Options passed to JSMapQueryExtension.queryRenderedFeatures.
-
JSQuerySourceFeaturesOptions
-
Options passed to JSMapQueryExtension.querySourceFeatures.
-
JSScaleControl
-
mapboxgl.ScaleControl. Renders a scale bar that relabels itself as the
camera moves.
-
JSScaleControlOptions
-
Options passed to JSScaleControl's constructor.
-
JSScaleUnit
-
Unit system for JSScaleControl. Closed set, mirroring GL JS's
Unit.
-
JSScreenPoint
-
GL JS's
Point (@mapbox/point-geometry). Pixel coordinate within the
map container; satisfies PointLike wherever GL JS accepts one.
-
JSStyle
-
Map.style. Only indoorManager is bound here.
-
JSStyleSpec
-
The root-level camera fields from a Mapbox style specification.
-
JSTargetDescriptor
-
GL JS
TargetDescriptor — {layerId} or {featuresetId, importId?}.
-
JSTargetFeature
-
GL JS
TargetFeature.
-
JSTouchZoomRotateHandler
-
touchZoomRotate handler — adds disableRotation/enableRotation for
turning off the rotate portion of pinch while keeping pinch-zoom on, and
disableTapDragZoom/enableTapDragZoom for turning off double-tap-and-
drag zoom while keeping pinch-zoom on.
-
JSTransform
-
The GL JS
Transform, which holds the camera state and geometry of a map.