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
Set to true
if the MapView can cache tiles produced by this DataSource
.
Overrides the default rendering order of this DataSource
.
Set to true
if this DataSource
is enabled; false
otherwise.
An array of ISO 639-1 language codes.
The maximum zoom level at which data is available.
The maximum zoom level at which DataSource is displayed.
The minimum zoom level at which data is available.
The minimum zoom level at which DataSource is displayed.
The unique name of a DataSource
instance.
Set to true
if the loader should be used to get the tile contents.
Maximum geometry height above ground level this DataSource
can produce.
Used in first stage of frustum culling before {@link Tile.maxGeometryHeight} data is available.
Maximum geometry height above ground level this DataSource
can produce.
Used in first stage of frustum culling before {@link Tile.maxGeometryHeight} data is available.
The maximum zoom level at which data is available or displayed at (depending on DataSource subclass).
The maximum zoom level at which data is available or displayed at (depending on DataSource subclass).
Minimum geometry height below ground level this DataSource
can produce. A negative number
specifies a value below ground level.
Used in first stage of frustum culling before {@link Tile.minGeometryHeight} data is available.
Minimum geometry height below ground level this DataSource
can produce. A negative number
specifies a value below ground level.
Used in first stage of frustum culling before {@link Tile.minGeometryHeight} data is available.
The minimum zoom level at which data is available or displayed at (depending on DataSource subclass).
The minimum zoom level at which data is available or displayed at (depending on DataSource subclass).
The {@link @here/harp-geoutils#Projection} used by
the MapView that is holding this DataSource
.
An Error
is thrown if you call this method
before this DataSource
has been added
to a MapView.
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.
Setup the relative offset 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.
Difference between zoom level and display level.
Returns the name of the [[StyleSet]] to use for the decoding.
Sets the name of the [[StyleSet]] to use for the decoding. If this DataSource is already attached to a MapView, this setter then reapplies [[StyleSet]] with this name found in MapViews theme.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Returns true
if DataSource can load tile with
given {@link @here/harp-geoutils#TileKey} and zoom level.
The zoom level of the MapView.
The unique identifier for a map tile.
true
if the tile for the given {@link @here/harp-geoutils#TileKey} can be loaded.
Purges all the caching done by this DataSource
Clears the state of all the features of this DataSource.
This method is called when the DataSource
is added to a MapView. Override this
method to provide any custom initialization, such as, to establish a network connection,
or to initialize complex data structures.
Fire an event type.
Destroys this DataSource
.
Computes the data zoom level to use.
The zoom level of the MapView.
The data zoom level to use.
Gets the state of the given feature id.
The id of the feature. Id numbers are deprecated in favor of strings.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Whether this DataSource
is detached from the MapView
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 true
if DataSource should be displayed for the zoom level.
The zoom level of the MapView.
Returns true
if this DataSource
is ready
and the MapView can invoke getTile()
to
start requesting data.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Removes the state associated to the given feature.
The id of the feature. Id numbers are deprecated in favor of strings.
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.
dataSource.setFeatureState(featureId, { enabled: true });
The id of the feature. Id numbers are deprecated in favor of strings.
The new state of the feature.
Used to configure the languages used by the DataSource
according to priority;
the first language in the array has the highest priority.
An array of ISO 639-1 language codes.
Used to express different country point of view (political view).
The country code which point of view should be presented in lower-case ISO 3166-1 alpha-2 format.
Returns true
if MapView should render the text
elements with the given {@link @here/harp-geoutils#TileKey} and
zoom level.
The zoom level.
The unique identifier for a map tile.
true
if the text elements created for the
given {@link @here/harp-geoutils#TileKey} should be rendered.
Returns true
if MapView should traverse tiles
further with given {@link @here/harp-geoutils#TileKey} and
zoom level.
The zoom level of the MapView.
The unique identifier for a map tile.
true
if the subtiles of the given {@link @here/harp-geoutils#TileKey} should be
checked for collisions.
Generated using TypeDoc
Provides background geometry for all tiles.