Skip to main content

flywave-terrain-datasource.cesiumworldterrainsource

Home > @flywave/flywave-terrain-datasource > CesiumWorldTerrainSource

CesiumWorldTerrainSource class

Implementation of a terrain source for Cesium World Terrain data

This class simplifies access to Cesium World Terrain by automatically handling the authentication flow with Cesium Ion access tokens. It extends the standard QuantizedTerrainSource with Cesium-specific configuration options.

The source provides efficient storage and transmission of terrain data by using a variable level of detail (LOD) approach that adapts to the viewer's distance from the terrain surface.

Signature:

export declare class CesiumWorldTerrainSource extends QuantizedTerrainSource 

Extends: QuantizedTerrainSource

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Creates a new CesiumWorldTerrainSource instance

Properties

Property

Modifiers

Type

Description

accessToken

readonly

string

Gets the Cesium Ion access token used by this terrain source

apiEndpoint

readonly

string

Gets the API endpoint used by this terrain source

assetId

readonly

number

Gets the asset ID used by this terrain source

Methods

Method

Modifiers

Description

connect()

Called when the data source is attached to a MapView