text stringlengths 0 8.81k |
|---|
requestVertexNormals |
Boolean |
false |
optional |
Flag that indicates if the client should request additional lighting information from the server if available. |
requestWaterMask |
Boolean |
false |
optional |
Flag that indicates if the client should request per tile water masks from the server if available. |
Returns: |
A promise that resolves to the created CesiumTerrainProvider |
Examples: |
// Create Cesium World Terrain with default settings |
try { |
const viewer = new Cesium.Viewer("cesiumContainer", { |
terrainProvider: await Cesium.createWorldTerrainAsync(); |
}); |
} catch (error) { |
console.log(error); |
} |
// Create Cesium World Terrain with water and normals. |
try { |
const viewer1 = new Cesium.Viewer("cesiumContainer", { |
terrainProvider: await Cesium.createWorldTerrainAsync({ |
requestWaterMask: true, |
requestVertexNormals: true |
}); |
}); |
} catch (error) { |
console.log(error); |
} |
See: |
Ion |
defaultValue(a, b) → * |
engine/Source/Core/defaultValue.js 14 |
Returns the first parameter if not undefined, otherwise the second parameter. |
Useful for setting a default value for a parameter. |
Name |
Type |
Description |
a |
* |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.