newClusterCallback

typealias newClusterCallback = (clusteredEntities: ReadonlyArray<Entity>, cluster: Any) -> Unit(source)

A event listener function used to style clusters.

// The default cluster values.
dataSource.clustering.clusterEvent.addEventListener(function(entities, cluster) {
cluster.label.show = true;
cluster.label.text = entities.length.toLocaleString();
});

Parameters

clusteredEntities

An array of the entities contained in the cluster.

cluster

An object containing the Billboard, Label, and Point primitives that represent this cluster of entities.

See also