new CzmlDataSource
A DataSource which processes CZML.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
name |
String |
<optional> |
An optional name for the data source. This value will be overwritten if a loaded document contains a name. |
Source:
Members
-
changedEvent :Event
-
Gets an event that will be raised when the underlying data changes.
-
clock :DynamicClock
-
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.
-
dynamicObjects :DynamicObjectCollection
-
Gets the collection of DynamicObject instances.
-
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.
-
<static> updaters :Array
-
Gets the array of CZML processing functions.
Methods
-
<static> processMaterialPacketData
-
A helper function used by custom CZML updater functions which creates or updates a MaterialProperty from a CZML packet.
Parameters:
Name Type Argument 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.y intervalTimeInterval <optional>
A constraining interval for which the data is valid. sourceUriString <optional>
The originating uri of the data being processed. Returns:
Boolean True if a new property was created, false otherwise. -
<static> processPacketData
-
A helper function used by custom CZML updater functions which creates or updates a Property from a CZML packet.
Parameters:
Name Type Argument 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.y intervalTimeInterval <optional>
A constraining interval for which the data is valid. sourceUriString <optional>
The originating uri of the data being processed. Returns:
Boolean True if a new property was created, false otherwise. -
<static> processPositionPacketData
-
A helper function used by custom CZML updater functions which creates or updates a PositionProperty from a CZML packet.
Parameters:
Name Type Argument 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.y intervalTimeInterval <optional>
A constraining interval for which the data is valid. sourceUriString <optional>
The originating uri of the data being processed. Returns:
Boolean True if a new property was created, false otherwise. -
<static> prototype.load
-
Replaces any existing data with the provided CZML.
Parameters:
Name Type Description czmlObject The CZML to be processed. sourceString The source URI of the CZML. -
<static> prototype.loadUrl
-
Asynchronously loads the CZML at the provided url, replacing any existing data.
Parameters:
Name Type Description urlObject The url to be processed. Returns:
Promise a promise that will resolve when the CZML is processed. -
<static> prototype.process
-
Processes the provided CZML without clearing any existing data.
Parameters:
Name Type Description czmlObject The CZML to be processed. sourceUriString The source URI of the CZML. -
<static> prototype.processUrl
-
Asynchronously processes the CZML at the provided url without clearing any existing data.
Parameters:
Name Type Description urlObject The url to be processed. Returns:
Promise a promise that will resolve when the CZML is processed.
