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

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

The newest version!
// Automatically generated - do not modify!

@file:JsModule("cesium")

package cesium

/**
 * Initiates a sampleTerrain() request at the maximum available tile level for a terrain dataset.
 * ```
 * // Query the terrain height of two Cartographic positions
 * const terrainProvider = createWorldTerrain();
 * const positions = [
 *     Cartographic.fromDegrees(86.925145, 27.988257),
 *     Cartographic.fromDegrees(87.0, 28.0)
 * ];
 * const 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
 */
external fun sampleTerrainMostDetailed(
    terrainProvider: TerrainProvider,
    positions: Array,
): kotlin.js.Promise>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy