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
-
Gets the array of CZML processing functions.
-
changedEvent : Event
-
Gets an event that will be raised when the underlying data changes.
-
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.
-
clustering : EntityCluster
-
Gets or sets the clustering options for this data source. This object can be shared between multiple data sources.
-
Gets the collection of
Entityinstances. -
errorEvent : Event
-
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
-
Gets an event that will be raised when the data source either starts or stops loading.
-
Gets a human-readable name for this instance.
-
Gets whether or not this data source should be displayed.
Methods
-
staticCesium.CzmlDataSource.load(data, options) → Promise.<CzmlDataSource>
-
Creates a Promise to a new instance loaded with the provided CZML data.
Name Type Description dataString | Object A url or CZML object to be processed. optionsObject optional An object with the following properties: Name Type Description sourceUriString optional Overrides the url to use for resolving relative links. Returns:
A promise that resolves to the new instance once the data is processed. -
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. -
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. -
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, options) → Promise.<CzmlDataSource>
-
Loads the provided url or CZML object, replacing any existing data.
Name Type Description czmlString | Object A url or CZML object to be processed. optionsObject optional An object with the following properties: Name Type Description sourceUriString optional Overrides the url to use for resolving relative links. Returns:
A promise that resolves to this instances once the data is processed. -
process(czml, options) → Promise.<CzmlDataSource>
-
Processes the provided url or CZML object without clearing any existing data.
Name Type Description czmlString | Object A url or CZML object to be processed. optionsObject optional An object with the following properties: Name Type Description sourceUriString optional Overrides the url to use for resolving relative links. Returns:
A promise that resolves to this instances once the data is processed.
