@JsType(isNative=true,
namespace="Cesium",
name="CesiumTerrainProvider")
public class CesiumTerrainProvider
extends Object
implements TerrainProvider
| Modifier and Type | Field and Description |
|---|---|
TileAvailability |
availability
Gets an object that can be used to determine availability of terrain from this provider, such as at points and in rectangles.
|
Credit |
credit
Gets the credit to display when this terrain provider is active.
|
Event |
errorEvent
Gets an event that is raised when the terrain provider encounters an asynchronous error..
|
boolean |
hasVertexNormals
Gets a value indicating whether or not the requested tiles include vertex normals.
|
boolean |
hasWaterMask
Gets a value indicating whether or not the provider includes a water mask.
|
boolean |
ready
Gets a value indicating whether or not the provider is ready for use.
|
boolean |
requestVertexNormals
Boolean flag that indicates if the client should request vertex normals from the server.
|
boolean |
requestWaterMask
Boolean flag that indicates if the client should request a watermask from the server.
|
GeographicTilingScheme |
tilingScheme
Gets the tiling scheme used by this provider.
|
| Constructor and Description |
|---|
CesiumTerrainProvider(CesiumTerrainProviderOptions options)
A
TerrainProvider that access terrain data in a Cesium terrain format. |
| Modifier and Type | Method and Description |
|---|---|
double |
getLevelMaximumGeometricError(int level)
Gets the maximum geometric error allowed in a tile at a given level.
|
boolean |
getTileDataAvailable(int x,
int y,
int level)
Determines whether data for a tile is available to be loaded.
|
Promise<Boolean,Void> |
readyPromise()
Gets a promise that resolves to true when the provider is ready for use.
|
Promise<TerrainData,Void> |
requestTileGeometry(int x,
int y,
int level,
Request request)
Requests the geometry for a given tile.
|
@JsProperty public TileAvailability availability
ready returns true.
This property may be undefined if availability information is not available.@JsProperty public Credit credit
ready returns true.@JsProperty public Event errorEvent
@JsProperty public boolean hasVertexNormals
ready returns true.@JsProperty public boolean hasWaterMask
@JsProperty public boolean ready
@JsProperty public boolean requestVertexNormals
@JsProperty public boolean requestWaterMask
@JsProperty public GeographicTilingScheme tilingScheme
ready returns true.@JsConstructor public CesiumTerrainProvider(CesiumTerrainProviderOptions options)
TerrainProvider that access terrain data in a Cesium terrain format.
The format is described on the Cesium wiki.options - @JsProperty(name="readyPromise") public Promise<Boolean,Void> readyPromise()
@JsMethod public double getLevelMaximumGeometricError(int level)
ready returns true.getLevelMaximumGeometricError in interface TerrainProviderlevel - The tile level for which to get the maximum geometric error.@JsMethod
public boolean getTileDataAvailable(int x,
int y,
int level)
getTileDataAvailable in interface TerrainProviderx - The X coordinate of the tile for which to request geometry.y - The Y coordinate of the tile for which to request geometry.level - The level of the tile for which to request geometry.@JsMethod public Promise<TerrainData,Void> requestTileGeometry(int x, int y, int level, Request request)
ready returns true.
The result must include terrain data and may optionally include a water mask and an indication of which child tiles are available.requestTileGeometry in interface TerrainProviderx - The X coordinate of the tile for which to request geometry.y - The Y coordinate of the tile for which to request geometry.level - The level of the tile for which to request geometry.request - The request object. Intended for internal use only.Copyright © 2019. All rights reserved.