flywave-mapview.datasource
Home > @flywave/flywave-mapview > DataSource
DataSource class
Derive a class from DataSource to contribute data and geometries to the MapView.
Signature:
export declare abstract class DataSource extends THREE.EventDispatcher<{
update: {};
}>
Extends: THREE.EventDispatcher<{ update: {}; }>
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
boolean | Whether the datasource should have a ground plane (this plane covers the tile entirely and has the minimum possible renderOrder), this can be required in some cases when fallback parent tiles need to be covered by the children, otherwise the content will overlap. Default is false | ||
boolean | |||
boolean | Set to | ||
number | Overrides the default rendering order of this | ||
boolean | Set to | ||
boolean | |||
| string[] | (Optional) An array of ISO 639-1 language codes. | |
| The MapView that is holding this | ||
number | The maximum zoom level at which data is available. | ||
number | The maximum zoom level at which DataSource is displayed. | ||
number | Maximum geometry height above ground level this Used in first stage of frustum culling before data is available. | ||
number | The minimum zoom level at which data is available. | ||
number | The minimum zoom level at which DataSource is displayed. | ||
number | Minimum geometry height below ground level this Used in first stage of frustum culling before data is available. | ||
string | The unique name of a | ||
| Projection | The used by the MapView that is holding this An | |
number | The difference between storage level and display level of tile. Storage level offset is a value applied (added) to current zoom level giving a final tile level being displayed. This way we may differentiate current zoom level from the storage level that is displayed, giving fine grained control over the tiles being decoded an displayed. | ||
string | undefined | Returns the name of the [[StyleSet]] to use for the decoding. | ||
boolean | Set to |
Methods
Method | Modifiers | Description |
|---|---|---|
This method is called when this Overrides of this method must invoke the definition of the super class. | ||
Returns | ||
Returns | ||
Purges all the caching done by this | ||
Clears the state of all the features of this DataSource. | ||
This method is called when the | ||
This method is called when this Overrides of this method must invoke the definition of the super class. | ||
Destroys this | ||
Computes the data zoom level to use. | ||
Gets the state of the given feature id. | ||
| This method is called when MapView needs to visualize or preload the content of a . | |
| Returns the used by this | |
Whether this | ||
Boolean which says whether a DataSource produces tiles that fully cover the tile, i.e. tiles underneath are completely hidden. Must be overridden for DataSource's that don't have a ground plane, but which still fully cover the tile, e.g. web tiles. | ||
Returns | ||
this method is called by the MapView to determine if the content of the surrounding tiles must be preloaded. | ||
Returns | ||
Removes the state associated to the given feature. | ||
Sends a request to the MapView to redraw the scene. | ||
Enables or disables overlay of geometry on elevation. It must be overloaded by data sources supporting this feature. | ||
Sets the state of the given feature id. | ||
Used to configure the languages used by the | ||
Used to express different country point of view (political view). Set to | ||
Apply the to this data source. If | ||
This method is called by the MapView to determine if the content of the surrounding tiles must be preloaded. | ||
Returns | ||
Returns | ||
This method is called by MapView before the tile needs to be updated, for example after a theme change. |