MarkerClusterLayerOptions constructor

MarkerClusterLayerOptions({
  1. required ClusterWidgetBuilder builder,
  2. List<Marker?> markers = const [],
  3. Size size = const Size(30, 30),
  4. Size computeSize(
    1. List<Marker?>
    )?,
  5. AnchorPos? anchor,
  6. int maxClusterRadius = 80,
  7. int disableClusteringAtZoom = 20,
  8. AnimationsOptions animationsOptions = const AnimationsOptions(),
  9. FitBoundsOptions fitBoundsOptions = const FitBoundsOptions(padding: EdgeInsets.all(12.0)),
  10. bool zoomToBoundsOnClick = true,
  11. bool centerMarkerOnClick = true,
  12. int spiderfyCircleRadius = 40,
  13. int spiderfySpiralDistanceMultiplier = 1,
  14. int circleSpiralSwitchover = 9,
  15. List<Point<num>> spiderfyShapePositions(
    1. int,
    2. Point<num>
    )?,
  16. PolygonOptions polygonOptions = const PolygonOptions(),
  17. bool showPolygon = true,
  18. void onMarkerTap(
    1. Marker?
    )?,
  19. void onClusterTap(
    1. MarkerClusterNode
    )?,
  20. void onMarkersClustered(
    1. List<Marker?>
    )?,
  21. 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);