可视化
DataSource 实例的集合。
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
包含以下属性的对象:
|
Members
获取要显示的数据源集合。
defaultDataSource : CustomDataSource
获取可用于手动创建和可视化
未绑定到特定数据源的实体的默认数据源实例。
此实例始终可用,并且不会出现在数据源集合列表中。
获取一个值,指示数据源中的所有实体是否都已准备就绪
获取与此显示关联的场景。
Methods
获取或设置用于创建可视化所用可视化器数组的默认函数。
默认情况下,此函数使用所有标准可视化器。
销毁此对象持有的 WebGL 资源。销毁对象允许确定性地
释放 WebGL 资源,而不是依赖垃圾回收器来销毁此对象。
一旦对象被销毁,就不应使用它;调用除
一旦对象被销毁,就不应使用它;调用除
isDestroyed 以外的任何函数将导致 DeveloperError 异常。因此,
应将返回值(undefined)分配给对象,如示例所示。
Throws:
-
DeveloperError : 此对象已被销毁,即已调用 destroy()。
Example:
dataSourceDisplay = dataSourceDisplay.destroy();
See:
Returns:
如果此对象已销毁则返回 true,否则返回 false。
Updates the display to the provided time.
| Name | Type | Description |
|---|---|---|
time |
JulianDate | The simulation time. |
Returns:
True if all data sources are ready to be displayed, false otherwise.
Type Definitions
Cesium.DataSourceDisplay.VisualizersCallback(scene, entityCluster, dataSource) → Array.<Visualizer>
A function which creates an array of visualizers used for visualization.
| Name | Type | Description |
|---|---|---|
scene |
Scene | The scene to create visualizers for. |
entityCluster |
EntityCluster | The entity cluster to create visualizers for. |
dataSource |
DataSource | The data source to create visualizers for. |
Returns:
An array of visualizers used for visualization.
Example:
function createVisualizers(scene, entityCluster, dataSource) {
return [new Cesium.BillboardVisualizer(entityCluster, dataSource.entities)];
}
