ClusterizedPlacemarkCollection class

A collection of PlacemarkMapObject to be displayed on YandexMap

Depending on distance from each other and current zoom level can be grouped into a single or multiple Cluster

Implemented types

Constructors

ClusterizedPlacemarkCollection({required MapObjectId mapId, required List<PlacemarkMapObject> placemarks, required double radius, required int minZoom, double zIndex = 0.0, TapCallback<ClusterizedPlacemarkCollection>? onTap, ClusterCallback? onClusterAdded, ClusterTapCallback? onClusterTap, bool consumeTapEvents = false, bool isVisible = true})

Properties

consumeTapEvents → bool
True if the placemark consumes tap events. If not, the map will propagate tap events to other map objects at the point of tap.
final
hashCode → int
The hash code for this object.
no setterinherited
isVisible → bool
Manages visibility of the object on the map.
final
mapId → MapObjectId
A unique identifier for this object in the scope of a single YandexMap
final
minZoom → int
Minimal zoom level that displays clusters.
final
onClusterAdded → ClusterCallback?
Callback to be called when a cluster has been added to YandexMap.
final
onClusterTap → ClusterTapCallback?
Callback to be called when a previously created Cluster is tapped.
final
onTap → TapCallback<ClusterizedPlacemarkCollection>?
Callback to call when any of this collection placemarks receives a tap
final
placemarks → List<PlacemarkMapObject>
List of PlacemarkMapObject eligible for clusterization.
final
props → List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
radius → double
Minimal distance in units between objects that remain separate.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
zIndex → double
z-order
final

Methods

clone() → ClusterizedPlacemarkCollection
Returns a duplicate of this object.
override
copyWith({List<PlacemarkMapObject>? placemarks, double? radius, int? minZoom, double? zIndex, TapCallback<ClusterizedPlacemarkCollection>? onTap, ClusterCallback? onClusterAdded, ClusterCallback? onClusterTap, bool? consumeTapEvents, bool? isVisible}) → ClusterizedPlacemarkCollection
Creates a modified copy.
dup(MapObjectId mapId) → ClusterizedPlacemarkCollection
Creates a new copy of T with the same attributes as the original except its id
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to something serializable in JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited