MarkerClusterLayerOptions class
- Inheritance
-
- Object
- LayerOptions
- MarkerClusterLayerOptions
Constructors
-
MarkerClusterLayerOptions({required ClusterWidgetBuilder builder, List<
Marker?> markers = const [], Size size = const Size(30, 30), Size computeSize(List<Marker?> )?, 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(int, Point<num> >num> )?, PolygonOptions polygonOptions = const PolygonOptions(), bool showPolygon = true, void onMarkerTap(Marker?)?, void onClusterTap(MarkerClusterNode)?, void onMarkersClustered(List<Marker?> )?, PopupOptions? popupOptions})
Properties
- anchor → AnchorPos?
-
Cluster anchor
final
- animationsOptions → AnimationsOptions
-
animations options
final
- builder → ClusterWidgetBuilder
-
Cluster builder
final
- centerMarkerOnClick → bool
-
When click marker, center it with animation
final
- circleSpiralSwitchover → int
-
Show spiral instead of circle from this marker count upwards.
0 -> always spiral; Infinity -> always circle
final
-
computeSize
→ (Size Function(List<
Marker?> )?) -
Cluster compute size
final
- disableClusteringAtZoom → int
-
If set, at this zoom level and below, markers will not be clustered. This defaults to 20 (max zoom)
final
- fitBoundsOptions → FitBoundsOptions
-
Options for fit bounds
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
-
markers
→ List<
Marker?> -
List of markers
final
- maxClusterRadius → int
-
A cluster will cover at most this many pixels from its center
final
- onClusterTap → (void Function(MarkerClusterNode)?)
-
Function to call when a cluster Marker is tapped
final
-
onMarkersClustered
→ (void Function(List<
Marker?> )?) -
Function to call when markers are clustered
final
- onMarkerTap → (void Function(Marker?)?)
-
Function to call when a Marker is tapped
final
- polygonOptions → PolygonOptions
-
Polygon's options that shown when tap cluster.
final
- popupOptions → PopupOptions?
-
Popup's options that show when tapping markers or via the PopupController.
final
-
rebuild
→ Stream<
Null> ? -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showPolygon → bool
-
If true show polygon then tap on cluster
final
- size → Size
-
Cluster size
final
- spiderfyCircleRadius → int
-
Increase to increase the distance away that circle spiderfied markers appear from the center
final
-
spiderfyShapePositions
→ (List<
Point< Function(int, Point<num> >num> )?) -
Make it possible to provide custom function to calculate spiderfy shape positions
final
- spiderfySpiralDistanceMultiplier → int
-
Increase to increase the distance away that spiral spiderfied markers appear from the center
final
- zoomToBoundsOnClick → bool
-
Zoom buonds with animation on click cluster
final
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