toClusterOptions method
Implementation
MarkerClusterLayerOptions toClusterOptions(
PowerMarkerClusterOptions powerClusterOptions,
List<PowerMarker> markers,
) {
return MarkerClusterLayerOptions(
builder: (BuildContext context, List<Marker> markers) =>
builder(context, markers.whereType<PowerMarker>().toList()),
rotate: rotate,
markers: markers,
size: size,
computeSize: computeSize,
alignment: alignment,
maxClusterRadius: maxClusterRadius,
disableClusteringAtZoom: disableClusteringAtZoom,
animationsOptions: animationsOptions,
padding: padding,
maxZoom: maxZoom,
inside: inside,
forceIntegerZoomLevel: forceIntegerZoomLevel,
zoomToBoundsOnClick: zoomToBoundsOnClick,
centerMarkerOnClick: centerMarkerOnClick,
spiderfyCircleRadius: spiderfyCircleRadius,
spiderfySpiralDistanceMultiplier: spiderfySpiralDistanceMultiplier,
circleSpiralSwitchover: circleSpiralSwitchover,
spiderfyShapePositions: spiderfyShapePositions,
spiderfyCluster: spiderfyCluster,
polygonOptions: polygonOptions,
showPolygon: showPolygon,
onMarkerTap: onMarkerTap,
onMarkerDoubleTap: onMarkerDoubleTap,
onMarkerHoverEnter: onMarkerHoverEnter,
onMarkerHoverExit: onMarkerHoverExit,
onClusterTap: onClusterTap,
onMarkersClustered: onMarkersClustered,
popupOptions: PopupOptions(
buildPopupOnHover: popupOptions?.buildPopupOnHover ?? false,
markerRotate: popupOptions?.markerRotate ?? false,
markerTapBehavior: popupOptions?.markerTapBehavior,
popupAnimation: popupOptions?.popupAnimation,
popupController: popupOptions?.popupController,
popupSnap: popupOptions?.popupSnap ?? PopupSnap.markerTop,
timeToShowPopupOnHover: popupOptions?.timeToShowPopupOnHover ?? 300,
popupBuilder: (_, Marker marker) =>
_markerBuilder(powerClusterOptions, marker),
),
markerChildBehavior: markerChildBehavior,
);
}