Appearance
KBE3D / KBCore / Cesium / EntityCluster
类: EntityCluster
Defines how screen space objects (billboards, points, labels) are clustered.
参数
An object with the following properties:
参数
Whether or not to enable clustering.
参数
The pixel range to extend the screen space bounding box.
参数
The minimum number of screen space objects that can be clustered.
参数
Whether or not to cluster the billboards of an entity.
参数
Whether or not to cluster the labels of an entity.
参数
Whether or not to cluster the points of an entity.
参数
Determines if the entities in the cluster will be shown.
属性
show
show:
boolean
Determines if entities in this collection will be shown.
enabled
enabled:
boolean
Gets or sets whether clustering is enabled.
pixelRange
pixelRange:
number
Gets or sets the pixel range to extend the screen space bounding box.
minimumClusterSize
minimumClusterSize:
number
Gets or sets the minimum number of screen space objects that can be clustered.
clusterEvent
clusterEvent:
Event<newClusterCallback>
Gets the event that will be raised when a new cluster will be displayed. The signature of the event listener is EntityCluster.newClusterCallback.
clusterBillboards
clusterBillboards:
boolean
Gets or sets whether clustering billboard entities is enabled.
clusterLabels
clusterLabels:
boolean
Gets or sets whether clustering labels entities is enabled.
clusterPoints
clusterPoints:
boolean
Gets or sets whether clustering point entities is enabled.
方法
destroy()
destroy():
void
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object. <p> Unlike other objects that use WebGL resources, this object can be reused. For example, if a data source is removed from a data source collection and added to another. </p>
返回
void
构造函数
构造函数
new EntityCluster(
options?: {enabled?:boolean;pixelRange?:number;minimumClusterSize?:number;clusterBillboards?:boolean;clusterLabels?:boolean;clusterPoints?:boolean;show?:boolean; }):EntityCluster
参数
options?
enabled?
boolean
pixelRange?
number
minimumClusterSize?
number
clusterBillboards?
boolean
clusterLabels?
boolean
clusterPoints?
boolean
show?
boolean
返回
EntityCluster
