Default constructor.
Data source configuration's parameters.
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.
Get the ITileDecoder of this ITileDataSource
, which has either been passed in with
the options, or has been supplied by the ConcurrentDecoderFacade.
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.
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.
Get the DataProvider that has been passed in with the options.
Fire an event type.
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.
Quadtree address of the requested tile.
If true, the Tile will be created, but Tile.load will not be called.
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.
Remove the current data filter. Will be applied to the decoder, which might be shared with other omv datasources.
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.
Set a new data filter. Can also be done during the creation of an VectorTileDataSource. Will be applied to the decoder, which might be shared with other omv datasources.
Data filter description created with OmvFeatureFilterDescriptionBuilder.
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.
Apply the {@link @here/harp-datasource-protocol#Theme} to this data source.
Applies new {@here/harp-datasource-protocol StyleSet} and definitions from theme only
if matching styleset (see styleSetName
property) is found in theme
.
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
GeoJsonDataSource
is used for the visualization of geometric objects provided in the GeoJSON format. To be able to render GeoJSON data, aGeoJsonDataSource
instance must be added to the {@link @here/harp-mapview#MapView} instance.const geoJsonDataProvider = new GeoJsonDataProvider( "italy", new URL("resources/italy.json", window.location.href) ); const geoJsonDataSource = new GeoJsonDataSource({ dataProvider: geoJsonDataProvider, styleSetName: "geojson" }); mapView.addDataSource(geoJsonDataSource);