PopupMarkerLayerOptions constructor
Implementation
PopupMarkerLayerOptions({
super.key,
//
required this.popupBuilder,
AlignmentGeometry? markerRotateAlignment,
MarkerLongPressBehavior? markerLongPressBehavior,
Offset? markerRotateOrigin,
bool? markerRotate = true,
Stream<void>? rebuild,
this.popupSnap = PopupSnap.markerTop,
this.markerCenterAnimation,
this.popupController,
this.popupAnimation,
required this.markersData,
this.onPopupEvent,
this.onTap,
}) : markerLongPressBehavior =
markerLongPressBehavior ??
MarkerLongPressBehavior.togglePopupAndHideRest(),
super(
//
markers: markersData.map((MarkerData e) => e.marker).toList(),
rotate: markerRotate ?? false,
alignment: geometryFor(
markerRotateAlignment ?? rotationAlignmentFor(AnchorAlign.top),
),
// rotateOrigin: markerRotateOrigin,
);