A
DataSource implementation which can be used to manually manage a group of entities.
| Name | Type | Description |
|---|---|---|
name |
string | optional 一个人类可以读取的名字 这个例子. |
Example:
const dataSource = new Cesium.CustomDataSource('myData');
const entity = dataSource.entities.add({
position : Cesium.Cartesian3.fromDegrees(1, 2, 0),
billboard : {
image : 'image.png'
}
});
viewer.dataSources.add(dataSource);
Members
changedEvent : Event
获得一个在基础数据变化时会提升的事件.
clock : DataSourceClock
获取或设定此实例的时钟 .
clustering : EntityCluster
获取或设置此数据源的分组选项。 此对象可以在多个数据源之间共享.
entities : EntityCollection
Gets the collection of
Entity instances.
errorEvent : Event
获得一个在处理过程中遇到错误时会提起的事件.
获取或设定数据源是否正在装入数据 .
loadingEvent : Event
获得数据源开始或停止加载时将提出的事件.
为这个例子获得或设置一个人可读的名字.
获取是否显示此数据源 .
Methods
将数据源更新到所提供时间。 此函数是可选的,并且
不需要执行。 提供的数据来源为:
根据当前动画时间或场景状态检索数据.
If implemented, update will be called by
DataSourceDisplay once a frame.
| Name | Type | Description |
|---|---|---|
time |
JulianDate | 模拟时间. |
Returns:
如果此数据源准备在指定时间显示, 则不正确 .