CzmlDataSource

CzmlDataSource

Methods

Gets the top level clock defined in CZML or the availability of the underlying data if no clock is defined. If the CZML document only contains infinite data, undefined will be returned.

Returns:
DynamicClock The clock associated with the current CZML data, or undefined if none exists.

Gets an event that will be raised if an error is encountered during processing.

Returns:
Event The event.

<static>

Replaces any existing data with the provided CZML.

Parameters:
Name Type Description
czml Object The CZML to be processed.
source String The source of the CZML.
Throws:
DeveloperError : czml is required.

<static>

Asynchronously loads the CZML at the provided url, replacing any existing data.

Parameters:
Name Type Description
url Object The url to be processed.
Throws:
DeveloperError : url is required.
Returns:
Promise a promise that will resolve when the CZML is processed.

<static>

Processes the provided CZML without clearing any existing data.

Parameters:
Name Type Description
czml Object The CZML to be processed.
source String The source of the CZML.
Throws:
DeveloperError : czml is required.

<static>

Asynchronously processes the CZML at the provided url without clearing any existing data.

Parameters:
Name Type Description
url Object The url to be processed.
Throws:
DeveloperError : url is required.
Returns:
Promise a promise that will resolve when the CZML is processed.