DataSourceDisplay

DataSourceDisplay

new

Visualizes a collection of DataSource instances.

Parameters:
Name Type Argument Description
scene Scene The scene in which to display the data.
dataSourceCollection DataSourceCollection The data sources to display.
visualizersCallback Visualizer[] <optional>
A function which takes a scene and dataSource and returns the array of visualizers used for visualization. If left undefined, all standard visualizers are used.
Source:

Methods

<static>

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.

Throws:
DeveloperError : This object was destroyed, i.e., destroy() was called.
Returns:
Example
dataSourceDisplay = dataSourceDisplay.destroy();
See:
  • DataSourceDisplay#isDestroyed

<static>

Gets the collection of data sources to be displayed.

Returns:
DataSourceCollection The collection of data sources.

<static>

Gets the scene being used for display.

Returns:
Scene The scene.

<static>

Returns true if this object was destroyed; otherwise, false.

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

Returns:
Boolean True if this object was destroyed; otherwise, false.
See:
  • DataSourceDisplay#destroy

<static>

Updates time-varying data sources to the provided time and also updates static data sources that have changed since the last call to update.

Parameters:
Name Type Description
time JulianDate The simulation time.