MVTDataProvider

A Mapbox Vector Tiles (MVT) data provider. Loads .mvt or .pbf tiles, converting tiles dynamically (at runtime) into 3D Tiles.
This object is normally not instantiated directly, use MVTDataProvider.fromUrl.

new Ditap.MVTDataProvider()

Experimental

This feature is not final and is subject to change without Cesium's standard deprecation policy.

Extends

Members

readonly extent : Rectangle|undefined

Optional geographic extent in radians used to generate tile headers.
Inherited From:

readonly resource : Resource

Resource derived from the URL template.
Inherited From:

show : boolean

Determines if the generated tileset is shown.
Inherited From:

readonly tileset : Cesium3DTileset|undefined

Backing 3D Tileset.
Inherited From:

readonly urlTemplate : string

URL template containing {z}/{x}/{y}.
Inherited From:

Methods

async static Ditap.MVTDataProvider.fromUrl(url, options) → Promise.<MVTDataProvider>

Creates an MVTDataProvider from the specified URL template and options.
Name Type Description
url Resource | string URL template, containing {z}, {x}, and {y} placeholders.
options object optional Provider options.
Name Type Default Description
minZoom number 0 optional Minimum zoom level represented in the generated tileset.
maxZoom number 14 optional Maximum zoom level represented in the generated tileset.
extent Rectangle optional Optional geographic extent in radians to constrain the generated tile tree.
featureIdProperty string optional MVT property name to use as feature ID.
heightReference HeightReference optional Drapes the decoded points, lines and polygons onto the surfaces selected by the value: HeightReference.CLAMP_TO_TERRAIN drapes onto the globe, HeightReference.CLAMP_TO_3D_TILE drapes onto 3D Tiles and models, and HeightReference.CLAMP_TO_GROUND drapes onto both. Requires options.scene.
scene Scene optional The scene the generated tileset is rendered in, required when options.heightReference is a clamping value.
Returns:

protected _createRuntimeTilesetOptions()

Inherited From: