newClusterCallback

typealias newClusterCallback = (@R|kotlin/ParameterName|(name = String(clusteredEntities)) ERROR CLASS: Symbol not found for ReadonlyArray<cesium/engine/Entity>, @R|kotlin/ParameterName|(name = String(cluster)) ERROR CLASS: Symbol not found for JsAny) -> 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