mapbox_gl_dart library
Type definitions for Mapbox GL JS
Classes
- AnimationOptions
- Options common to map movement methods that involve animation, such as {@link MapboxMap#panBy} and {@link MapboxMap#easeTo}, controlling the duration and easing function of the animation. All properties are optional.
- BoxZoomHandler
- Camera
- CameraOptions
- Options common to {@link MapboxMap#jumpTo}, {@link MapboxMap#easeTo}, and {@link MapboxMap#flyTo}, controlling the desired location, zoom, bearing, and pitch of the camera. All properties are optional, and when a property is omitted, the current camera value for that property will remain unchanged.
- CircleLayer
- CirclePaint
- DoubleClickZoomHandler
- DragPanHandler
- DragRotateHandler
- EvaluationParameters
- Event
- Evented
- Feature
- FeatureCollection
- GeoJsonSource
- GeolocateControl
-
A
GeolocateControl
control provides a button that uses the browser's geolocation API to locate the user on the map. - GeolocateControlOptions
- Geometry
- IControl
- Interface for interactive controls added to the map. This is a specification for implementers to model: it is not an exported method or class.
- KeyboardHandler
- Layer
- LineLayer
- LineLayout
- LinePaint
- LngLat
-
A
LngLat
object represents a given longitude and latitude coordinate, measured in degrees. - LngLatBounds
-
A
LngLatBounds
object represents a geographical bounding box, defined by its southwest and northeast points in longitude and latitude. - LogoControl
-
A
LogoControl
is a control that adds the Mapbox watermark to the map as required by the terms of service for Mapbox vector tiles and core styles. - Mapbox
- MapboxMap
-
The
MapboxMap
object represents the map on your page. It exposes methods and properties that enable you to programmatically change the map, and fires events as users interact with it. - MapMouseEvent
- MapOptions
- MapTouchEvent
- Marker
-
Creates a marker component
@param {HTMLElement}
element
DOM element to use as a marker. The default is a light blue, droplet-shaped SVG marker. @param {string}anchor='center'
A string indicating the part of the Marker that should be positioned closest to the coordinate set via {@link Marker#setLngLat}. Options are'center'
,'top'
,'bottom'
,'left'
,'right'
,'top-left'
,'top-right'
,'bottom-left'
, and'bottom-right'
. @param {PointLike}offset
The offset in pixels as a {@link PointLike} object to apply relative to the element's center. Negatives indicate left and up. @param {string}color='#3FB1CE'
The color to use for the default marker ifelement
is not provided. The default is light blue. @param {boolean}draggable=false
A boolean indicating whether or not a marker is able to be dragged to a new position on the map. @param {number}rotation=0
The rotation angle of the marker in degrees, relative to its respective {@link Marker#rotationAlignment} setting. A positive value will rotate the marker clockwise. @param {string}pitchAlignment='auto'
map
aligns theMarker
to the plane of the map.viewport
aligns theMarker
to the plane of the viewport.auto
automatically matches the value ofrotationAlignment
. @param {string}rotationAlignment='auto'
map
aligns theMarker
's rotation relative to the map, maintaining a bearing as the map rotates.viewport
aligns theMarker
's rotation relative to the viewport, agnostic to map rotations.auto
is equivalent toviewport
. - MarkerOptions
-
A
NavigationControl
control contains zoom buttons and a compass. - PaddingOptions
- Options for setting padding on a call to {@link MapboxMap#fitBounds}. All properties of this object must be non-negative integers.
- Point
- Popup
- A popup component.
- PopupOptions
- PositionOptions
- RequestParameters
- ScrollZoomHandler
-
Source<
T> - Style
- StyleFunction
- StyleImage
- StyleImageInterface
- StyleSetterOptions
- SymbolLayer
- SymbolLayout
- SymbolPaint
- TouchZoomRotateHandler
- VectorSource
Typedefs
- GeoListener = dynamic Function(dynamic object)
- Listener = dynamic Function(Event object)