Loading...
Searching...
No Matches
ClusterMapObjectListener Class Referenceabstract

Listener for updates of a single ClusterMapObject. More...

Public Member Functions

void onClusterChanged (ClusterMapObject cluster)
 Cluster marker needs an app-side update (bitmap, label, etc.).
 

Detailed Description

Listener for updates of a single ClusterMapObject.

onClusterChanged is called when the cluster member count changes while it remains a cluster (at least two icons). It is not called when the cluster is created or destroyed.

Definition at line 23 of file cluster_map_object_listener.dart.

Member Function Documentation

◆ onClusterChanged()

void ClusterMapObjectListener.onClusterChanged ( ClusterMapObject cluster)

Cluster marker needs an app-side update (bitmap, label, etc.).

Parameters
clusterCluster with at least two member icons. Use getCount() for the badge value.

Dart code snippet:

@override
void onClusterChanged(ClusterMapObject cluster) {
final memberCount = cluster.getCount();
print("Cluster changed, member count: $memberCount");
}

The documentation for this class was generated from the following file: