English中文

DataSource

定义数据源的接口,将任意数据转换为 Defines the interface for data sources, which turn arbitrary data into a EntityCollection 用于一般消费。该对象是用于文档目的的接口,并不打算直接实例化。 for generic consumption. This object is an interface for documentation purposes and is not intended to be instantiated directly.
另见: See:

成员 Members

获取当基础数据更改时将引发的事件。 Gets an event that will be raised when the underlying data changes.
获取此数据源的首选时钟设置。 Gets the preferred clock settings for this data source.
获取或设置此数据源的聚类选项。该对象可以在多个数据源之间共享。 Gets or sets the clustering options for this data source. This object can be shared between multiple data sources.
获取集合 Gets the collection of Entity instances.
获取在处理过程中遇到错误时将引发的事件。 Gets an event that will be raised if an error is encountered during processing.
获取一个值,该值指示数据源当前是否正在加载数据。 Gets a value indicating if the data source is currently loading data.

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

获取当 isLoading 的值更改时将引发的事件。 Gets an event that will be raised when the value of isLoading changes.
获取此实例的人类可读名称。 Gets a human-readable name for this instance.
获取是否应显示此数据源。 Gets whether or not this data source should be displayed.

方法 Methods

将数据源更新为提供的时间。该功能是可选的,不需要实现。它为根据当前动画时间或场景状态检索数据的数据源提供。如果实施,更新将被调用 Updates the data source to the provided time. This function is optional and is not required to be implemented. It is provided for data sources which retrieve data based on the current animation time or scene state. If implemented, update will be called by DataSourceDisplay 一次一帧。 once a frame.
名称 Name 类型 Type 说明 Description
time JulianDate 模拟时间。 The simulation time.
返回: Returns:
如果此数据源已准备好在提供的时间显示,则为 true,否则为 false。 True if this data source is ready to be displayed at the provided time, false otherwise.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.