LocationMarkerPlugin class

A plugin that should be registered in FlutterMap in order to render LocationMarkerLayer.

Constructors

LocationMarkerPlugin({Stream<double?>? centerCurrentLocationStream, Stream<void>? turnHeadingUpLocationStream, CenterOnLocationUpdate centerOnLocationUpdate = CenterOnLocationUpdate.never, TurnOnHeadingUpdate turnOnHeadingUpdate = TurnOnHeadingUpdate.never, Duration centerAnimationDuration = const Duration(milliseconds: 200), Curve centerAnimationCurve = Curves.fastOutSlowIn, Duration turnAnimationDuration = const Duration(milliseconds: 200), Curve turnAnimationCurve = Curves.easeInOut})
Create a LocationMarkerPlugin.
const

Properties

centerAnimationCurve Curve
The curve of the animation of centering the current location. Default to Curves.fastOutSlowIn.
final
centerAnimationDuration Duration
The duration of the animation of centering the current location. Default to 200ms.
final
centerCurrentLocationStream Stream<double?>?
The event stream for centering current location. Add a zoom level into this stream to center the current location at the provided zoom level or a null if the zoom level should be unchanged. Default to null.
final
centerOnLocationUpdate CenterOnLocationUpdate
When should the plugin center the current location to the map. Default to CenterOnLocationUpdate.never.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
turnAnimationCurve Curve
The curve of the animation of turn the current location. Default to Curves.easeInOut.
final
turnAnimationDuration Duration
The duration of the animation of turn the current location. Default to 200ms.
final
turnHeadingUpLocationStream Stream<void>?
The event stream for turning heading up. Default to null.
final
turnOnHeadingUpdate TurnOnHeadingUpdate
When should the plugin center the current location to the map. Default to TurnOnHeadingUpdate.never.
final

Methods

createLayer(LayerOptions options, MapState mapState, Stream<void> stream) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supportsLayer(LayerOptions options) bool
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited