createWorldBathymetry

suspend external fun createWorldBathymetry(options: CreateWorldBathymetryAsyncOptions? = definedExternally): CesiumTerrainProvider(source)

Creates a CesiumTerrainProvider instance for the Cesium World Bathymetry.

// Create Cesium World Bathymetry with default settings
try {
const viewer = new Viewer("cesiumContainer", {
terrainProvider: await createWorldBathymetryAsync();
});
} catch (error) {
console.log(error);
}
// Create Cesium World Bathymetry with normals.
try {
const viewer1 = new Viewer("cesiumContainer", {
terrainProvider: await createWorldBathymetryAsync({
requestVertexNormals: true
});
});
} catch (error) {
console.log(error);
}

Return

A promise that resolves to the created CesiumTerrainProvider

See also