MarkerClusterLayerOptions constructor
MarkerClusterLayerOptions({
- required ClusterWidgetBuilder builder,
- List<
Marker?> markers = const [], - Size size = const Size(30, 30),
- Size computeSize()?,
- AnchorPos? anchor,
- int maxClusterRadius = 80,
- int disableClusteringAtZoom = 20,
- AnimationsOptions animationsOptions = const AnimationsOptions(),
- FitBoundsOptions fitBoundsOptions = const FitBoundsOptions(padding: EdgeInsets.all(12.0)),
- bool zoomToBoundsOnClick = true,
- bool centerMarkerOnClick = true,
- int spiderfyCircleRadius = 40,
- int spiderfySpiralDistanceMultiplier = 1,
- int circleSpiralSwitchover = 9,
- List<
Point< spiderfyShapePositions()?,num> > - PolygonOptions polygonOptions = const PolygonOptions(),
- bool showPolygon = true,
- void onMarkerTap()?,
- void onClusterTap()?,
- void onMarkersClustered()?,
- PopupOptions? popupOptions,
Implementation
MarkerClusterLayerOptions({
required this.builder,
this.markers = const [],
this.size = const Size(30, 30),
this.computeSize,
this.anchor,
this.maxClusterRadius = 80,
this.disableClusteringAtZoom = 20,
this.animationsOptions = const AnimationsOptions(),
this.fitBoundsOptions =
const FitBoundsOptions(padding: EdgeInsets.all(12.0)),
this.zoomToBoundsOnClick = true,
this.centerMarkerOnClick = true,
this.spiderfyCircleRadius = 40,
this.spiderfySpiralDistanceMultiplier = 1,
this.circleSpiralSwitchover = 9,
this.spiderfyShapePositions,
this.polygonOptions = const PolygonOptions(),
this.showPolygon = true,
this.onMarkerTap,
this.onClusterTap,
this.onMarkersClustered,
this.popupOptions,
// ignore: unnecessary_null_comparison
}) : assert(builder != null);