Skip to content

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): WebGLGlobeDataSource

Parameters

ParameterTypeDefaultDescription
nameString-The name of this data source. If undefined, a name will be derived from the url

Properties

PropertyTypeDescription
nameStringGets a human-readable name for this instance
clockDataSourceClockSince WebGL Globe JSON is not time-dynamic, this property is always undefined
entitiesEntityCollectionGets the collection of Entity instances
isLoadingBooleanGets a value indicating if the data source is currently loading data
changedEventEventGets an event that will be raised when the underlying data changes
errorEventEventGets an event that will be raised if an error is encountered during processing
loadingEventEventGets an event that will be raised when the data source either starts or stops loading
seriesNamesString[]Gets the array of series names
seriesToDisplayStringGets 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
heightScaleNumberGets or sets the scale factor applied to the height of each line. Default: 10000000
showEntityCollectionGets whether or not this data source should be displayed
clusteringEntityClusterGets 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): Promise

load

Loads the provided data, replacing any existing data.

ts
load(data: Array): void