main.cesium.createWorldTerrain.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package cesium
/**
* Creates a [CesiumTerrainProvider] instance for the [Cesium World Terrain](https://cesium.com/content/#cesium-world-terrain).
* ```
* // Create Cesium World Terrain with default settings
* var viewer = new Viewer('cesiumContainer', {
* terrainProvider : createWorldTerrain();
* });
* ```
* ```
* // Create Cesium World Terrain with water and normals.
* var viewer = new Viewer('cesiumContainer', {
* terrainProvider : createWorldTerrain({
* requestWaterMask : true,
* requestVertexNormals : true
* });
* });
* ```
* @see Online Documentation
*/
@JsName("\$cesium__createWorldTerrain")
external fun createWorldTerrain(options: CreateWorldTerrainOptions? = definedExternally): CesiumTerrainProvider
/**
* @property [requestVertexNormals] Flag that indicates if the client should request additional lighting information from the server if available.
* Default value - `false`
* @property [requestWaterMask] Flag that indicates if the client should request per tile water masks from the server if available.
* Default value - `false`
*/
@JsName("\$cesium__CreateWorldTerrainOptions")
external interface CreateWorldTerrainOptions {
var requestVertexNormals: Boolean?
var requestWaterMask: Boolean?
}