ClusterNode<T> class
Represents either a single unclustered ClusterMarker or a group of multiple markers merged into one cluster at the current zoom level.
- Annotations
Constructors
-
ClusterNode({required String id, required GeoPoint position, required Offset screenPosition, required List<
ClusterMarker< markers, required GeoBounds bounds, required double expansionZoom})T> > - Creates a ClusterNode.
Properties
- bounds → GeoBounds
-
Geographic bounding box enclosing all markers in this node.
final
- count → int
-
Number of markers contained in this node.
no setter
- expansionZoom → double
-
Estimated minimum zoom level at which this cluster splits into smaller
sub-clusters or individual markers.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Stable deterministic identifier for this node, used to key widgets and
drive smooth split/merge animations.
final
- isCluster → bool
-
Returns
truewhen this node represents two or more grouped markers.no setter -
markers
→ List<
ClusterMarker< T> > -
Immutable list of markers grouped inside this node.
final
- position → GeoPoint
-
Weighted geographic centroid of all markers inside this node.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenPosition → Offset
-
Projected screen coordinate of position within the current viewport.
final
-
singleMarker
→ ClusterMarker<
T> ? -
Returns the sole marker when isCluster is
false, ornullotherwise.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withScreenPosition(
Offset newScreenPosition) → ClusterNode< T> - Returns a copy of this node with an updated screenPosition.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override