new CzmlDataSource(name)
A
DataSource which processes CZML.
| Name | Type | Description |
|---|---|---|
name |
String | optional An optional name for the data source. This value will be overwritten if a loaded document contains a name. |
Members
-
staticCzmlDataSource.updaters :Array
-
Gets the array of CZML processing functions.
-
changedEvent :Event
-
Gets an event that will be raised when the underlying data changes.
-
clock :DataSourceClock
-
Gets the clock settings defined by the loaded CZML. If no clock is explicitly defined in the CZML, the combined availability of all objects is returned. If only static data exists, this value is undefined.
-
entities :EntityCollection
-
Gets the collection of
Entityinstances. -
errorEvent :Event
-
Gets an event that will be raised if an error is encountered during processing.
-
isLoading :Boolean
-
Gets a value indicating if the data source is currently loading data.
-
loadingEvent :Event
-
Gets an event that will be raised when the data source either starts or stops loading.
-
name :String
-
Gets a human-readable name for this instance.
Methods
-
staticCzmlDataSource.processMaterialPacketData(object, propertyName, packetData, interval, sourceUri, entityCollection)
-
A helper function used by custom CZML updater functions which creates or updates a
MaterialPropertyfrom a CZML packet.Name Type Description objectObject The object on which the property will be added or updated. propertyNameString The name of the property on the object. packetDataObject The CZML packet being processed. intervalTimeInterval A constraining interval for which the data is valid. sourceUriString The originating uri of the data being processed. entityCollectionEntityCollection The collection being processsed. -
staticCzmlDataSource.processPacketData(type, object, propertyName, packetData, interval, sourceUri, entityCollection)
-
A helper function used by custom CZML updater functions which creates or updates a
Propertyfrom a CZML packet.Name Type Description typefunction The constructor function for the property being processed. objectObject The object on which the property will be added or updated. propertyNameString The name of the property on the object. packetDataObject The CZML packet being processed. intervalTimeInterval A constraining interval for which the data is valid. sourceUriString The originating uri of the data being processed. entityCollectionEntityCollection The collection being processsed. -
staticCzmlDataSource.processPositionPacketData(object, propertyName, packetData, interval, sourceUri, entityCollection)
-
A helper function used by custom CZML updater functions which creates or updates a
PositionPropertyfrom a CZML packet.Name Type Description objectObject The object on which the property will be added or updated. propertyNameString The name of the property on the object. packetDataObject The CZML packet being processed. intervalTimeInterval A constraining interval for which the data is valid. sourceUriString The originating uri of the data being processed. entityCollectionEntityCollection The collection being processsed. -
load(czml, source)
-
Replaces any existing data with the provided CZML.
Name Type Description czmlObject The CZML to be processed. sourceString The source URI of the CZML. -
loadUrl(url) → Promise
-
Asynchronously loads the CZML at the provided url, replacing any existing data.
Name Type Description urlObject The url to be processed. Returns:
a promise that will resolve when the CZML is processed. -
process(czml, sourceUri)
-
Processes the provided CZML without clearing any existing data.
Name Type Description czmlObject The CZML to be processed. sourceUriString The source URI of the CZML. -
processUrl(url) → Promise
-
Asynchronously processes the CZML at the provided url without clearing any existing data.
Name Type Description urlObject The url to be processed. Returns:
a promise that will resolve when the CZML is processed.
