TableDataSource

TableDataSource

new TableDataSource(tableStructureopt, tableStyleopt, nameopt, isUpdatingopt)

Source:

A DataSource for table-based data where each row corresponds to a single feature or point - not region-mapped. Generates Cesium entities for each row. Displaying the points requires a legend.

Parameters:
Name Type Attributes Description
tableStructure TableStructure <optional>

The Table Structure instance; defaults to a new one.

tableStyle TableStyle <optional>

The table style; defaults to undefined.

name String <optional>

A name to show in the legend if no columns are available.

isUpdating Boolean <optional>

Is the underlying data going to update? Defaults to false. If true, replaces constant feature properties and description with a CallbackProperty.

Members

changedEvent :CesiumEvent

Source:

Gets a CesiumEvent that will be raised when the underlying data changes.

Type:
  • CesiumEvent

clock :DataSourceClock

Source:

Gets the clock settings defined by the loaded data. If only static data exists, this value is undefined.

Type:
  • DataSourceClock

entities :EntityCollection

Source:

Gets the collection of Entity instances.

Type:
  • EntityCollection

errorEvent :CesiumEvent

Source:

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

Type:
  • CesiumEvent

isLoading :Boolean

Source:

Gets a value indicating if the data source is currently loading data.

Type:
  • Boolean

loadingEvent :CesiumEvent

Source:

Gets a CesiumEvent that will be raised when the data source either starts or stops loading.

Type:
  • CesiumEvent

name :String

Source:

Gets a human-readable name for this instance.

Type:
  • String

tableStructure :TableStructure

Source:

Gets the TableStructure object holding all the data.

Type:

Methods

destroy()

Source:

Destroy the object and release resources

loadFromCsv(csvString)

Source:

Creates a table structure from the csv provided, and attaches it to this datasource.

Parameters:
Name Type Description
csvString String

Csv-formatted string.