new Cesium.DataSourceDisplay(options)

Visualizes a collection of DataSource instances.
Name Type Description
options object 下列属性的对象 :
Name Type Default Description
scene Scene 显示数据的场景 .
dataSourceCollection DataSourceCollection 要显示的数据源 .
visualizersCallback DataSourceDisplay.VisualizersCallback DataSourceDisplay.defaultVisualizersCallback optional 创建用于可视化的一系列可视化器的函数. 如果未定义,则使用所有标准可视化器.

Members

dataSources : DataSourceCollection

获取要显示的数据收集源.

defaultDataSource : CustomDataSource

获取默认数据源实例,用于 手动创建和可视化未绑定的实体 特定数据源。 这个例子总是有的 并且不出现在列表中的数据来源集.

readonly ready : boolean

获得一个显示数据源中所有实体是否准备好的值

scene : Scene

获取与此显示相关的场景 .

Methods

static Cesium.DataSourceDisplay.defaultVisualizersCallback()

获取或设置默认函数,创建用于可视化的一组可视化器. 默认情况下,此函数使用所有标准可视化器.

destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic 释放 WebGL 资源,而不是依赖垃圾收集器来摧毁此对象.

Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.
Throws:
  • DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
dataSourceDisplay = dataSourceDisplay.destroy();
See:

isDestroyed()boolean

如果此对象被销毁, 返回真实; 否则, 错误 .

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.
Returns:
如果此天体被销毁, 则属真; 否则, 属假 .
See:

update(time)boolean

将显示更新到所提供时间.
Name Type Description
time JulianDate 模拟时间.
Returns:
如果所有数据源都准备好显示,则不正确.

Type Definitions

Cesium.DataSourceDisplay.VisualizersCallback(scene, entityCluster, dataSource)Array.<Visualizer>

创建用于可视化的一系列可视化器的函数.
Name Type Description
scene Scene 创造视觉器的场景.
entityCluster EntityCluster 创建可视化器的实体集群 .
dataSource DataSource 创建可视化器的数据源 .
Returns:
一组用于可视化的可视化器.
Example:
function createVisualizers(scene, entityCluster, dataSource) {
    return [new Cesium.BillboardVisualizer(entityCluster, dataSource.entities)];
}
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.