new CustomDataSource(nameopt)
A
DataSource
implementation which can be used to manually manage a group of entities.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String |
<optional> |
A human-readable name for this instance. |
- Source:
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);
Members
changedEvent :Event
Gets an event that will be raised when the underlying data changes.
Type:
- Source:
clock :DataSourceClock
Gets or sets the clock for this instance.
Type:
- Source:
clustering :EntityCluster
Gets or sets the clustering options for this data source. This object can be shared between multiple data sources.
Type:
- Source:
entities :EntityCollection
Gets the collection of
Entity
instances.
Type:
- Source:
errorEvent :Event
Gets an event that will be raised if an error is encountered during processing.
Type:
- Source:
isLoading :Boolean
Gets or sets whether the data source is currently loading data.
Type:
- Boolean
- Source:
loadingEvent :Event
Gets an event that will be raised when the data source either starts or stops loading.
Type:
- Source:
name :String
Gets or sets a human-readable name for this instance.
Type:
- String
- Source:
show :Boolean
Gets whether or not this data source should be displayed.
Type:
- Boolean
- Source: