PopupMarkerLayerOptions class

Constructors

PopupMarkerLayerOptions({required PopupBuilder popupBuilder, AlignmentGeometry? markerRotateAlignment, MarkerLongPressBehavior? markerLongPressBehavior, Offset? markerRotateOrigin, bool? markerRotate = true, Stream<void>? rebuild, PopupSnap popupSnap = PopupSnap.markerTop, List<MarkerData> markersData = const [], MarkerCenterAnimation? markerCenterAnimation, PopupController? popupController, PopupAnimation? popupAnimation, dynamic onPopupEvent(PopupEvent event, List<MarkerData> selectedMarkers)?, dynamic onTap(MarkerData)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key?
finalinherited
markerCenterAnimation MarkerCenterAnimation?
Setting a MarkerCenterAnimation will cause the map to be centered on a marker when it is tapped. Defaults to not centering on the marker.
final
markerLongPressBehavior MarkerLongPressBehavior
final
markers List<Marker>
finalinherited
markersData List<MarkerData>
getter/setter pair
onPopupEvent → dynamic Function(PopupEvent event, List<MarkerData> selectedMarkers)?
final
onTap → dynamic Function(MarkerData)?
final
popupAnimation PopupAnimation?
Allows the use of an animation for showing/hiding popups. Defaults to no animation.
final
popupBuilder PopupBuilder
Used to construct the popup.
final
popupController PopupController?
If a PopupController is provided it can be used to programmatically show and hide the popup.
final
popupSnap PopupSnap
Controls the position of the popup relative to the marker or popup.
final
rebuild Stream<void>?
finalinherited
rotate bool?
If true markers will be counter rotated to the map rotation
finalinherited
rotateAlignment AlignmentGeometry?
The alignment of the origin, relative to the size of the box.
finalinherited
rotateOrigin Offset?
The origin of the coordinate system (relative to the upper left corner of this render object) in which to apply the matrix.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usePxCache bool
Toggle marker position caching. Enabling will improve performance, but may introducen errors when adding/removing markers. Default is enabled (true).
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

rotationAlignmentFor(AnchorAlign anchorAlign) AlignmentGeometry