All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.sampleTerrainMostDetailed.kt Maven / Gradle / Ivy

There is a newer version: 1.90.0-10
Show newest version
// Automatically generated - do not modify!

package cesium

/**
 * Initiates a sampleTerrain() request at the maximum available tile level for a terrain dataset.
 * ```
 * // Query the terrain height of two Cartographic positions
 * var terrainProvider = createWorldTerrain();
 * var positions = [
 *     Cartographic.fromDegrees(86.925145, 27.988257),
 *     Cartographic.fromDegrees(87.0, 28.0)
 * ];
 * var promise = sampleTerrainMostDetailed(terrainProvider, positions);
 * when(promise, function(updatedPositions) {
 *     // positions[0].height and positions[1].height have been updated.
 *     // updatedPositions is just a reference to positions.
 * });
 * ```
 * @param [terrainProvider] The terrain provider from which to query heights.
 * @param [positions] The positions to update with terrain heights.
 * @return A promise that resolves to the provided list of positions when terrain the query has completed.  This
 *   promise will reject if the terrain provider's `availability` property is undefined.
 * @see Online Documentation
 */
@JsName("\$cesium__sampleTerrainMostDetailed")
external fun sampleTerrainMostDetailed(
    terrainProvider: TerrainProvider,
    positions: Array,
): kotlin.js.Promise>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy