new Cesium.DataSource()

定义数据源的接口,将任意数据变成 用于通用消费的 EntityCollection . 此对象是一个接口 用于文件目的,而无意被直接即决.
See:

Members

changedEvent : Event

获得一个在基础数据变化时会提升的事件.

clock : DataSourceClock

获取此数据源的首选时钟设置.

clustering : EntityCluster

获取或设置此数据源的分组选项。 此对象可以在多个数据源之间共享.

entities : EntityCollection

Gets the collection of Entity instances.

errorEvent : Event.<function(this, RequestErrorEvent)>

获得一个在处理过程中遇到错误时会提起的事件.

isLoading : boolean

获得一个表示数据源是否正在装入数据的值.

loadingEvent : Event.<function(this, boolean)>

获得当值为 LOADING 更改时会提高的事件 .

name : string

为这个例子获得一个人可读的名字.

show : boolean

获取是否显示此数据源 .

Methods

update(time)boolean

将数据源更新到所提供时间。 此函数是可选的,并且 不需要执行。 提供的数据来源为: 根据当前动画时间或场景状态检索数据. If implemented, update will be called by DataSourceDisplay once a frame.
Name Type Description
time JulianDate 模拟时间.
Returns:
如果此数据源准备在指定时间显示, 则不正确 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.