Skip to main content

flywave-vectortile-datasource.vectortiledatasource

Home > @flywave/flywave-vectortile-datasource > VectorTileDataSource

VectorTileDataSource class

VectorTileDataSource is used for the visualization of vector tiles.

Signature:

export declare class VectorTileDataSource extends TileDataSource 

Extends: TileDataSource

Example

   const dataSource = new VectorTileDataSource({
baseUrl: "https://vector.hereapi.com/v2/vectortiles/base/mc",
authenticationCode: apikey
});
mapView.addDataSource(dataSource);

Constructors

Constructor

Modifiers

Description

(constructor)(m_params)

Constructs a new instance of the VectorTileDataSource class

Properties

Property

Modifiers

Type

Description

storageLevelOffset

number

Methods

Method

Modifiers

Description

connect()

removeDataFilter()

Remove the current data filter. Will be applied to the decoder, which might be shared with other omv datasources.

setDataFilter(filterDescription)

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.

setEnableElevationOverlay(enable)

setPoliticalView(politicalView)

shouldPreloadTiles()