@JsType(isNative=true, namespace="Cesium", name="KmlDataSource") public class KmlDataSource extends Object implements DataSource
Modifier and Type | Field and Description |
---|---|
Event |
changedEvent
Gets an event that will be raised when the underlying data changes.
|
DataSourceClock |
clock
Gets the clock settings defined by the loaded KML.
|
EntityCluster |
clustering
Gets or sets the clustering options for this data source.
|
EntityCollection |
entities
Gets the collection of Entity instances.
|
Event |
errorEvent
Gets an event that will be raised if an error is encountered during processing.
|
boolean |
isLoading
Gets a value indicating if the data source is currently loading data.
|
Event |
loadingEvent
Gets an event that will be raised when the data source either starts or stops loading.
|
String |
name
Gets a human-readable name for this instance.
|
Event |
refreshEvent
Gets an event that will be raised when the data source refreshes a network link.
|
boolean |
show
Gets whether or not this data source should be displayed.
|
Event |
unsupportedNodeEvent
Gets an event that will be raised when the data source finds an unsupported node type.
|
Constructor and Description |
---|
KmlDataSource(KmlDataSourceOptions options)
A DataSource which processes Keyhole Markup Language 2.2 (KML).
|
Modifier and Type | Method and Description |
---|---|
Promise<KmlDataSource,Void> |
load(String data)
Creates a Promise to a new instance loaded with the provided KML data.
|
Promise<KmlDataSource,Void> |
load(String data,
KmlDataSourceLoadOptions options)
Creates a Promise to a new instance loaded with the provided KML data.
|
static Promise<KmlDataSource,Void> |
load(String data,
KmlDataSourceLoadStaticOptions options)
Creates a Promise to a new instance loaded with the provided KML data.
|
boolean |
update(JulianDate time)
Updates the data source to the provided time.
|
@JsProperty public Event changedEvent
@JsProperty public DataSourceClock clock
@JsProperty public EntityCluster clustering
@JsProperty public EntityCollection entities
@JsProperty public Event errorEvent
@JsProperty public boolean isLoading
@JsProperty public Event loadingEvent
@JsProperty public String name
@JsProperty public Event refreshEvent
@JsProperty public boolean show
@JsProperty public Event unsupportedNodeEvent
@JsConstructor public KmlDataSource(KmlDataSourceOptions options)
options
- Options@JsMethod public static Promise<KmlDataSource,Void> load(String data, KmlDataSourceLoadStaticOptions options)
data
- A url containing binary KMZ data or a parsed KML document.options
- KmlDataSourceLoadStaticOptions
@JsMethod public Promise<KmlDataSource,Void> load(String data)
data
- A url containing binary KMZ data or a parsed KML document.@JsMethod public Promise<KmlDataSource,Void> load(String data, KmlDataSourceLoadOptions options)
data
- A url containing binary KMZ data or a parsed KML document.options
- KmlDataSourceLoadStaticOptions
@JsMethod public boolean update(JulianDate time)
DataSource
update
in interface DataSource
time
- The simulation time.Copyright © 2019. All rights reserved.