Basic topic
Visit the documentation to learn more.
Classes
- CameraAnimation
- How MapController.animateCamera moves the camera to its target.
- CameraAnimationEase
- A CameraAnimation that eases to the target, see CameraAnimation.ease.
- CameraAnimationFly
- A CameraAnimation that flies to the target, see CameraAnimation.fly.
- CameraPosition
- The current camera position on the map.
- CameraUpdate
- Where the map camera goes: to a position, or to a camera that fits bounds, points or a geometry into the map.
- CameraUpdateBounds
- A CameraUpdate that fits bounds into the map, see CameraUpdate.bounds.
- CameraUpdateFit
- A CameraUpdate that fits a target into the map: CameraUpdateBounds, CameraUpdatePoints or CameraUpdateGeometry.
- CameraUpdateGeometry
- A CameraUpdate that fits a geometry into the map, see CameraUpdate.geometry.
- CameraUpdatePoints
- A CameraUpdate that fits points into the map, see CameraUpdate.points.
- CameraUpdatePosition
- A CameraUpdate that sets fields of the camera, see CameraUpdate.position.
- MapController
- The MapController can be used to control, update and manipulate a rendered MapLibreMap.
- MapGestures
- The gestures that move the map camera, all on by default.
- MapLibreMap
- The MapLibreMap widget that can be inserted into the flutter widget tree.
- MapMovements
- How the user may move the map camera, whatever the gesture.
- MapOptions
- The MapOptions class is used to set default values for the MapLibreMap widget.
- MapPlugin
- Lets a widget in MapLibreMap.children, such as a plugin, add to the map what the app declares with the parameters of MapLibreMap: layers, event callbacks and limits on how the map moves.
- MapStyle
- The style of a map: a MapLibre style document from a URL, a JSON string, a Flutter asset or a file.
- MapStyleAsset
- A MapStyle loaded from a Flutter asset.
- MapStyleFile
- A MapStyle loaded from a file. Not supported on web.
- MapStyleJson
- A MapStyle given as a JSON string.
- MapStyleUrl
- A MapStyle loaded from a URL.
- QueryGeometry
- Where MapController.queryRenderedFeatures looks for features, in logical pixels of the map.
- QueryGeometryPoint
- A QueryGeometry at a point, see QueryGeometry.point.
- QueryGeometryRect
- A QueryGeometry in a rectangle, see QueryGeometry.rect.
- QueryGeometryViewport
- A QueryGeometry that covers the map, see QueryGeometry.viewport.
- RenderedFeature
- Data class representing a vector feature that was rendered on the map.
- SourceFeature
- A feature that MapController.querySourceFeatures found in a source.
- StyleController
- The StyleController can be used to manipulate the style of a MapLibreMap. It can be accessed via MapController.style, and in MapLibreMap.children via StyleController.of.
- StyleImageOptions
-
How the map draws an image of the style, for
icon-text-fitand SDF icons. Positions are in pixels of the image, except for the images that StyleController.addImageFromCanvas, StyleController.addImageFromIconData and StyleController.addImageFromWidget draw, where they are logical pixels like their size.
Enums
- CameraAnimationResult
- How a MapController.animateCamera call ended.
- ImageTextFit
- How an image that StyleImageOptions.textFitWidth or StyleImageOptions.textFitHeight stretches fits the text of a symbol.
- MapProjection
- The map projections of the style spec.
Typedefs
- MapCreatedCallback = void Function(MapController controller)
- Callback that fires once the native MapLibre map has been created for a MapLibreMap widget. It provides the MapController to the user.
-
MapEventCallback<
T extends MapEvent> = void Function(T event) -
Callback of a MapLibreMap event of type
T. - StyleLoadedCallback = void Function(StyleController style)
- Callback that fires once the map style has successfully loaded. It provides the StyleController to the user.