plugin_api library

Classes

Anchor
AnchorPos<T>
AssetTileProvider
BaseOverlayImage
Base class for all overlay images.
Bounds<T extends num>
Rectangular bound delimited by orthogonal lines passing through two points.
CenterZoom
Geographical point with applied zoom level
CircleLayer
CircleMarker
CirclePainter
Crs
An abstract representation of a Coordinate Reference System.
CrsSimple
CustomPoint<T extends num>
Data represenation of point located on map instance where x is horizontal and y is vertical pixel value
CustomTileProvider
A very basic TileProvider implementation, that can be extended to create your own provider
Earth
Epsg3857
The most common CRS used for rendering maps.
Epsg4326
A common CRS among GIS enthusiasts. Uses simple Equirectangular projection.
FadeInTileDisplay
FadeRAWA
Prebuilt animation provider for a RichAttributionWidget
FileTileProvider
TileProvider that uses FileImage internally on platforms other than web
FitBoundsOptions
FlutterMap
Renders a map composed of a list of layers powered by LayerOptions.
FlutterMapState
InstantaneousTileDisplay
InteractiveFlag
Use InteractiveFlag to disable / enable certain events Use InteractiveFlag.all to enable all events, use InteractiveFlag.none to disable all events
LatLngBounds
Data structure representing rectangular bounding box constrained by its northwest and southeast corners
LogoSourceAttribution
An image attribution permanently displayed adjacent to the open/close icon of a RichAttributionWidget
MapController
Controller to programmatically interact with FlutterMap.
MapControllerImpl
MapEvent
Base event class which is emitted by MapController instance, the event is usually related to performed gesture on the map itself or it can be an event related to map configuration
MapEventDoubleTapZoom
Event which is fired when map is double tapped
MapEventDoubleTapZoomEnd
Event which is fired when animation for double tap gesture ends
MapEventDoubleTapZoomStart
Event which is fired when animation for double tap gesture is started
MapEventFlingAnimation
Event which is fired when animation started by fling gesture is in progress
MapEventFlingAnimationEnd
Event which is fired when animation started by fling gesture finished
MapEventFlingAnimationNotStarted
Emits when InteractiveFlags contains fling and there wasn't enough velocity to start fling animation
MapEventFlingAnimationStart
Event which is fired when fling gesture is detected
MapEventLongPress
Event which is fired when map is long-pressed
MapEventMove
Event which is fired when map is being moved.
MapEventMoveEnd
Event which is fired when dragging is finished
MapEventMoveStart
Event which is fired when dragging is started
MapEventNonRotatedSizeChange
MapEventRotate
Event which is fired when map is being rotated
MapEventRotateEnd
MapEventRotateStart
Event which is fired when rotate gesture was started
MapEventScrollWheelZoom
Event which is fired when scroll wheel is used to zoom
MapEventSecondaryTap
MapEventTap
Event which is fired when map is tapped
MapEventWithMove
Base event class which is emitted by MapController instance and includes information about camera movement
MapOptions
Allows you to provide your map's starting properties for zoom, rotation and center. Alternatively you can provide bounds instead of center. If both, center and bounds are provided, bounds will take preference over center. Zoom, pan boundary and interactivity constraints can be specified here too.
MapPosition
Position's type for PositionCallback.
Marker
Marker object that is rendered by MarkerLayerWidget
MarkerLayer
MoveAndRotateResult
MultiFingerGesture
Use MultiFingerGesture to disable / enable certain gestures Use MultiFingerGesture.all to enable all gestures, use MultiFingerGesture.none to disable all gestures
NetworkNoRetryTileProvider
TileProvider that uses FMNetworkNoRetryImageProvider internally
NetworkTileProvider
TileProvider that uses FMNetworkImageProvider internally
OverlayImage
Unrotated overlay image that spans between a given bounding box.
OverlayImageLayer
Polygon
PolygonLayer
PolygonPainter
Polyline
PolylineLayer
PolylinePainter
PositionedTapController
PositionedTapDetector2
Proj4Crs
Custom CRS
Projection
RichAttributionWidget
A prebuilt dynamic attribution layer that supports both logos and text through SourceAttributions
RichAttributionWidgetAnimation
Animation provider base for a RichAttributionWidget
RichAttributionWidgetState
RotatedOverlayImage
Spans an image across three corner points.
ScaleRAWA
Prebuilt animation provider for a RichAttributionWidget
SimpleAttributionWidget
A simple, classic style, attribution widget, to be placed in FlutterMap.nonRotatedChildren
SourceAttribution
Base class for attributions that render themselves as widgets
SphericalMercator
TapPosition
TextSourceAttribution
A simple text attribution displayed in the popup box of a RichAttributionWidget
TileCoordinates
TileDisplay
TileImage
TileLayer
Describes the needed properties to create a tile-based layer. A tile is an image bound to a specific geographical position.
TileProvider
The base tile provider implementation, extended by other classes such as NetworkTileProvider
TileUpdateEvent
Describes whether loading and/or pruning should occur and allows overriding the load center/zoom.
TileUpdateTransformers
Transformation
WMSTileLayerOptions

Enums

AnchorAlign
AttributionAlignment
Position to anchor RichAttributionWidget to relative to the FlutterMap
EvictErrorTileStrategy
MapEventSource
Event sources which are used to identify different types of MapEvent events
PolygonLabelPlacement

Functions

coordinateDebugTileBuilder(BuildContext context, Widget tileWidget, TileImage tile) Widget
Shows coordinates over Tiles
darkModeTileBuilder(BuildContext context, Widget tileWidget, TileImage tile) Widget
Applies inversion color matrix on Tiles which may simulate Dark mode. darkModeTilesContainerBuilder is better at performance because it applies color matrix on the container instead of on every Tile
darkModeTilesContainerBuilder(BuildContext context, Widget tilesContainer) Widget
Applies inversion color matrix on Tiles container which may simulate Dark mode.
loadingTimeDebugTileBuilder(BuildContext context, Widget tileWidget, TileImage tile) Widget
Shows the Tile loading time in ms

Typedefs

ErrorTileCallBack = void Function(TileImage tile, Object error, StackTrace? stackTrace)
LongPressCallback = void Function(TapPosition tapPosition, LatLng point)
MapEventCallback = void Function(MapEvent)
PointerCancelCallback = void Function(PointerCancelEvent event, LatLng point)
PointerDownCallback = void Function(PointerDownEvent event, LatLng point)
PointerHoverCallback = void Function(PointerHoverEvent event, LatLng point)
PointerUpCallback = void Function(PointerUpEvent event, LatLng point)
PositionCallback = void Function(MapPosition position, bool hasGesture)
TapCallback = void Function(TapPosition tapPosition, LatLng point)
TapPositionCallback = void Function(TapPosition position)
TemplateFunction = String Function(String str, Map<String, String> data)
TileBuilder = Widget Function(BuildContext context, Widget tileWidget, TileImage tile)
TileUpdateTransformer = StreamTransformer<TileUpdateEvent, TileUpdateEvent>