UrlTemplate3DTilesDataProvider

Base provider for URL-template vector sources that are rendered through a runtime-generated 3D Tiles tileset.

new Ditap.UrlTemplate3DTilesDataProvider(urlTemplate, options)

Name Type Description
urlTemplate 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 Feature property name to use as feature ID when supported by content decoding.
heightReference HeightReference optional Drapes the vector content onto the surfaces selected by the value. Requires options.scene.
scene Scene optional The scene the generated tileset is rendered in, required when options.heightReference is a clamping value.
Experimental

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

Members

readonly extent : Rectangle|undefined

Optional geographic extent in radians used to generate tile headers.

readonly resource : Resource

Resource derived from the URL template.

show : boolean

Determines if the generated tileset is shown.

readonly tileset : Cesium3DTileset|undefined

Backing 3D Tileset.

readonly urlTemplate : string

URL template containing {z}/{x}/{y}.

Methods

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

Creates a provider from a URL template.
Name Type Description
url Resource | string URL template containing {z}, {x}, and {y} placeholders.
options object optional Provider options.
Returns:

protected _configureTileset(_tileset)

Name Type Description
_tileset Cesium3DTileset

protected _createCodec() → object

Subclasses must return a runtime content codec describing how to turn a downloaded tile payload into a Cesium3DTileContent. See Cesium3DTileset#_runtimeContentCodec for the expected shape.
Returns:

protected _createRuntimeTilesetOptions()

protected _createTilesetLoadOptions() → object

Returns: