billboard, point, label 的 Primitive对象聚合类, 由火星科技Mars3D开发
参数名称 | 类型 | 描述信息 | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
可选
An object with the following properties:
|
Demo:
成员(属性)
Gets or sets whether clustering billboard entities is enabled.
clusterEvent : Event.<PrimitiveCluster.newClusterCallback>
Gets the event that will be raised when a new cluster will be displayed. The signature of the event listener is
PrimitiveCluster.newClusterCallback
.
Gets or sets whether clustering labels entities is enabled.
Gets or sets whether clustering point entities is enabled.
Gets or sets whether clustering is enabled.
Gets or sets the minimum number of screen space objects that can be clustered.
Gets or sets the pixel range to extend the screen space bounding box.
Determines if entities in this collection will be shown.
-
默认值:
true
定义的类型
A event listener function used to style clusters.
参数名称 | 类型 | 描述信息 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
clusteredEntities |
Array.<Entity> | An array of the entities contained in the cluster. | ||||||||||||
cluster |
object |
An object containing the Billboard, Label, and Point
primitives that represent this cluster of entities.
|
使用示例:
// The default cluster values.
dataSource.clustering.clusterEvent.addEventListener(function(entities, cluster) {
cluster.label.show = true;
cluster.label.text = entities.length.toLocaleString();
});