CustomDataSource - Cesium Documentation

# CustomDataSource

#### new CustomDataSource(name)

  A `DataSource` implementation which can be used to manually manage a group of entities.

  Name | Type | Description
  --- | --- | ---
  `name` | String | optional A human-readable name for this instance.

  ##### Example:

      var dataSource = new Cesium.CustomDataSource('myData');

      var entity = dataSource.entities.add({
         position : Cesium.Cartesian3.fromDegrees(1, 2, 0),
         billboard : {
             image : 'image.png'
         }
      });

      viewer.dataSources.add(dataSource);

  Source: DataSources/CustomDataSource.js, line 34

### Members

#### changedEvent :Event

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

#### clock :DataSourceClock

  Gets or sets the clock for this instance.
  Source: DataSources/CustomDataSource.js, line 66

#### entities :EntityCollection

  Gets the collection of `Entity` instances.
  Source: DataSources/CustomDataSource.js, line 82

#### errorEvent :Event

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

#### isLoading :Boolean

  Gets or sets whether the data source is currently loading data.
  Source: DataSources/CustomDataSource.js, line 92

#### loadingEvent :Event

  Gets an event that will be raised when the data source either starts or stops loading.
  Source: DataSources/CustomDataSource.js, line 125

#### name :String

  Gets or sets a human-readable name for this instance.
  Source: DataSources/CustomDataSource.js, line 50