sampleTerrainMostDetailed

sampleTerrainMostDetailed(terrainProvider, positions)Promise.<Array.<Cartographic>>

在地形数据集的最大可用瓦片级别上发起一个sampleTerrain()请求。
Name Type Description
terrainProvider TerrainProvider 用于查询高度信息的地形Provider。
positions Array.<Cartographic> 要用地形高度更新的位置。
Returns:
当地形查询完成时解析到所提供的位置列表的Promise。如果地形提供程序的“可用性”属性未定义,此Promise将被拒绝。
Example:
// Query the terrain height of two Cartographic positions
var terrainProvider = new SuperMap3D.SuperMapTerrainProvider({
    url : 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles'
});
var positions = [
    SuperMap3D.Cartographic.fromDegrees(86.925145, 27.988257),
    SuperMap3D.Cartographic.fromDegrees(87.0, 28.0)
];
var promise = SuperMap3D.sampleTerrainMostDetailed(terrainProvider, positions);
SuperMap3D.when(promise, function(updatedPositions) {
    // positions[0].height and positions[1].height have been updated.
    // updatedPositions is just a reference to positions.
});