new TableDataSource(tableStructureopt, tableStyleopt, nameopt, isUpdatingopt)
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. |
- Source:
Members
changedEvent :CesiumEvent
Gets a CesiumEvent that will be raised when the underlying data changes.
Type:
- CesiumEvent
- Source:
clock :DataSourceClock
Gets the clock settings defined by the loaded data. If only static data exists, this value is undefined.
Type:
- DataSourceClock
- Source:
entities :EntityCollection
Gets the collection of Entity instances.
Type:
- EntityCollection
- Source:
errorEvent :CesiumEvent
Gets a CesiumEvent that will be raised if an error is encountered during processing.
Type:
- CesiumEvent
- Source:
isLoading :Boolean
Gets a value indicating if the data source is currently loading data.
Type:
- Boolean
- Source:
loadingEvent :CesiumEvent
Gets a CesiumEvent that will be raised when the data source either starts or stops loading.
Type:
- CesiumEvent
- Source:
name :String
Gets a human-readable name for this instance.
Type:
- String
- Source:
tableStructure :TableStructure
Gets the TableStructure object holding all the data.
Type:
- Source:
Methods
destroy()
Destroy the object and release resources
- Source:
loadFromCsv(csvString)
Creates a table structure from the csv provided, and attaches it to this datasource.
Parameters:
| Name | Type | Description |
|---|---|---|
csvString |
String | Csv-formatted string. |
- Source: