ArcGISTiledElevationTerrainProvider

To construct a CesiumTerrainProvider, call [ArcGISTiledElevationTerrainProvider.fromUrl]. Do not call the constructor directly.

A TerrainProvider that produces terrain geometry by tessellating height maps retrieved from Elevation Tiles of an an ArcGIS ImageService.

const terrainProvider = await ArcGISTiledElevationTerrainProvider.fromUrl("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer", {
token: "KED1aF_I4UzXOHy3BnhwyBHU4l5oY6rO6walkmHoYqGp4XyIWUd5YZUC1ZrLAzvV40pR6gBXQayh0eFA8m6vPg.."
});
viewer.terrainProvider = terrainProvider;

Parameters

options

A url or an object describing initialization options

See also

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed interface ConstructorOptions

Initialization options for the ArcGISTiledElevationTerrainProvider constructor

Properties

Link copied to clipboard
open override val availability: TileAvailability

Gets an object that can be used to determine availability of terrain from this provider, such as at points and in rectangles. This property may be undefined if availability information is not available.

Link copied to clipboard
open override val credit: Credit

Gets the credit to display when this terrain provider is active. Typically this is used to credit the source of the terrain.

Link copied to clipboard
open override val errorEvent: DefaultEvent

Gets an event that is raised when the terrain provider encounters an asynchronous error. By subscribing to the event, you will be notified of the error and can potentially recover from it. Event listeners are passed an instance of TileProviderError.

Link copied to clipboard
open override val hasVertexNormals: Boolean

Gets a value indicating whether or not the requested tiles include vertex normals.

Link copied to clipboard
open override val hasWaterMask: Boolean

Gets a value indicating whether or not the provider includes a water mask. The water mask indicates which areas of the globe are water rather than land, so they can be rendered as a reflective surface with animated waves.

Link copied to clipboard

Gets the tiling scheme used by this provider.

Functions

Link copied to clipboard
open override fun getLevelMaximumGeometricError(level: Int): Double

Gets the maximum geometric error allowed in a tile at a given level.

Link copied to clipboard
open override fun getTileDataAvailable(x: Double, y: Double, level: Int): Boolean?

Determines whether data for a tile is available to be loaded.

Link copied to clipboard
suspend fun loadTileDataAvailability(x: Double, y: Double, level: Int)

Makes sure we load availability data for a tile

Link copied to clipboard
open override fun loadTileDataAvailabilityAsync(x: Double, y: Double, level: Int): Void

Makes sure we load availability data for a tile

Link copied to clipboard
suspend fun requestTileGeometry(x: Double, y: Double, level: Int, request: Request? = definedExternally): TerrainData?

Requests the geometry for a given tile. The result must include terrain data and may optionally include a water mask and an indication of which child tiles are available.

Link copied to clipboard
open override fun requestTileGeometryAsync(x: Double, y: Double, level: Int, request: Request?): Promise<TerrainData>?

Requests the geometry for a given tile. The result includes terrain data and indicates that all child tiles are available.