PopupMarkerLayerOptions class

Constructors

PopupMarkerLayerOptions({List<Marker> markers = const [], bool? markerRotate = true, AlignmentGeometry? markerRotateAlignment, Offset? markerRotateOrigin, required PopupBuilder popupBuilder, PopupSnap popupSnap = PopupSnap.markerTop, PopupAnimation? popupAnimation, MarkerCenterAnimation? markerCenterAnimation, PopupController? popupController, MarkerTapBehavior? markerTapBehavior, dynamic onPopupEvent(PopupEvent event, List<Marker> selectedMarkers)?, Stream<void>? rebuild})
Show the list of markers on the map with a popups that are shown when a marker is tapped or when triggered via the popupController.

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
markers List<Marker>
finalinherited
markerTapBehavior MarkerTapBehavior
The default MarkerTapBehavior is MarkerTapBehavior.togglePopupAndHideRest which will toggle the popup of the tapped marker and hide all other popups. This is a sensible default when you only want to show a single popup at a time but if you show multiple popups you probably want to use MarkerTapBehavior.togglePopup.
final
onPopupEvent → (dynamic Function(PopupEvent event, List<Marker> selectedMarkers)?)
An optional callback which can be used to react to PopupEvents. The selectedMarkers is the list of Markers which are selected before the event is applied.
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