DataSource - Cesium Documentation

# DataSource

#### new 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:

  - Entity
  - DataSourceDisplay
  Source: DataSources/DataSource.js, line 20

### Members

#### changedEvent :Event

  Gets an event that will be raised when the underlying data changes.
  Source: DataSources/DataSource.js, line 62

#### clock :DataSourceClock

  Gets the preferred clock settings for this data source.
  Source: DataSources/DataSource.js, line 38

#### entities :EntityCollection

  Gets the collection of `Entity` instances.
  Source: DataSources/DataSource.js, line 46

#### errorEvent :Event

  Gets an event that will be raised if an error is encountered during processing.
  Source: DataSources/DataSource.js, line 70

#### isLoading :Boolean

  Gets a value indicating if the data source is currently loading data.
  Source: DataSources/DataSource.js, line 54

#### loadingEvent :Event

  Gets an event that will be raised when the value of isLoading changes.
  Source: DataSources/DataSource.js, line 78

#### name :String

  Gets a human-readable name for this instance.
  Source: DataSources/DataSource.js, line 30

### Methods

#### update(time) → Boolean

  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 if this data source is ready to be displayed at the provided time, false otherwise.
  Source: DataSources/DataSource.js, line 93