class
CesiumTerrainProvider extends Object with TerrainProvider
Instance Constructors
-
-
new
CesiumTerrainProvider()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
var
errorEvent: Event
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
getEstimatedLevelZeroGeometricErrorForAHeightmap(ellipsoid: Ellipsoid, tileImageWidth: Double, numberOfTilesAtLevelZero: Double): Double
-
def
getLevelMaximumGeometricError(level: Double): Double
-
def
getRegularGridIndices(width: Double, height: Double): Uint16Array
-
def
getTileDataAvailable(x: Double, y: Double, level: Double): Boolean
-
def
hasOwnProperty(v: String): Boolean
-
var
hasVertexNormals: Boolean
-
var
hasWaterMask: Boolean
-
def
hashCode(): Int
-
var
heightmapTerrainQuality: Double
-
final
def
isInstanceOf[T0]: Boolean
-
def
isPrototypeOf(v: Object): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
propertyIsEnumerable(v: String): Boolean
-
var
ready: Boolean
-
var
readyPromise: Promise[Boolean]
-
def
requestTileGeometry(x: Double, y: Double, level: Double, throttleRequests: Boolean = ???): |[Promise[TerrainData], Unit]
-
var
requestVertexNormals: Boolean
-
var
requestWaterMask: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
-
def
toLocaleString(): String
-
def
toString(): String
-
def
valueOf(): Any
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Object
Inherited from Any
Inherited from AnyRef
Inherited from Any
A TerrainProvider that access terrain data in a Cesium terrain format. The format is described on the wiki.
alias CesiumTerrainProvider
- The options object takes the following properties - {String} options.url The URL of the Cesium terrain server. - {Proxy} [options.proxy] A proxy to use for requests. This object is expected to have a getURL function which returns the proxied URL, if needed. - {Boolean} [options.requestVertexNormals=false] Flag that indicates if the client should request additional lighting information from the server, in the form of per vertex normals if available. - {Boolean} [options.requestWaterMask=false] Flag that indicates if the client should request per tile water masks from the server, if available. - {Ellipsoid} [options.ellipsoid] The ellipsoid. If not specified, the WGS84 ellipsoid is used. - {Credit|String} [options.credit] A credit for the data source, which is displayed on the canvas.
// Construct a terrain provider that uses per vertex normals for lighting // to add shading detail to an imagery provider. var terrainProvider = new Cesium.CesiumTerrainProvider({ url : 'https://assets.agi.com/stk-terrain/world', requestVertexNormals : true }); // Terrain geometry near the surface of the globe is difficult to view when using NaturalEarthII imagery, // unless the TerrainProvider provides additional lighting information to shade the terrain (as shown above). var imageryProvider = Cesium.createTileMapServiceImageryProvider({ url : 'http://localhost:8080/Source/Assets/Textures/NaturalEarthII', fileExtension : 'jpg' }); var viewer = new Cesium.Viewer('cesiumContainer', { imageryProvider : imageryProvider, baseLayerPicker : false, terrainProvider : terrainProvider }); // The globe must enable lighting to make use of the terrain's vertex normals viewer.scene.globe.enableLighting = true;
TerrainProvider