Appearance
WebGLGlobeDataSource (WebGL Globe Data Source)
Create and manage a custom DataSource that loads JSON data as defined by Google's WebGL Globe.
Constructor
ts
new WebGLGlobeDataSource(name?: string): WebGLGlobeDataSourceParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| name | String | - | The name of this data source. If undefined, a name will be derived from the url |
Properties
| Property | Type | Description |
|---|---|---|
| name | String | Gets a human-readable name for this instance |
| clock | DataSourceClock | Since WebGL Globe JSON is not time-dynamic, this property is always undefined |
| entities | EntityCollection | Gets the collection of Entity instances |
| isLoading | Boolean | Gets a value indicating if the data source is currently loading data |
| changedEvent | Event | Gets an event that will be raised when the underlying data changes |
| errorEvent | Event | Gets an event that will be raised if an error is encountered during processing |
| loadingEvent | Event | Gets an event that will be raised when the data source either starts or stops loading |
| seriesNames | String[] | Gets the array of series names |
| seriesToDisplay | String | Gets or sets the name of the series to display. WebGL JSON is designed so that only one series is viewed at a time. Valid values are defined in the seriesNames property |
| heightScale | Number | Gets or sets the scale factor applied to the height of each line. Default: 10000000 |
| show | EntityCollection | Gets whether or not this data source should be displayed |
| clustering | EntityCluster | Gets or sets the clustering options for this data source. This object can be shared between multiple data sources |
Methods
loadUrl
Asynchronously loads the GeoJSON at the provided url, replacing any existing data.
ts
loadUrl(url: string): Promiseload
Loads the provided data, replacing any existing data.
ts
load(data: Array): void