ZCluster<T extends Clusterable> class

The List to be clustered must contain objects that conform to Clusterable.

Constructors

ZCluster({required int minZoom, required int maxZoom, required int radius, required int extent, required int nodeSize, dynamic points, dynamic createCluster})

Properties

extent int
Adjust the extent by powers of 2 (e.g. 512. 1024, ... max 8192) to get the desired distance between markers where they start to cluster.
final
hashCode int
The hash code for this object.
no setterinherited
maxZoom int
Any zoom value above maxZoom will not generate clusters.
final
minZoom int
Any zoom value below minZoom will not generate clusters.
final
nodeSize int
The size of the KD-tree leaf node, which affects performance.
final
radius int
Cluster radius in pixels.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

children(int? clusterId) List<T>?
Returns a list of clusters that are children of the given cluster.
clusters(List<double> bbox, int zoom) List<T>
Returns a list of clusters that reside within the bounding box, where bbox = southwestLng, southwestLat, northeastLng, northeastLat.
getClusterExpansionZoom(int clusterId) int
Returns the zoom on which the cluster expands into several children (useful for "click to zoom" feature) given the cluster's clusterId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
points(int clusterId) List<T>
Returns a list of standalone points (not clusters) that are children of the given cluster.
toString() String
A string representation of this object.
inherited

Operators

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