瀏覽代碼

add method getImageryLayerInfo

tags/2.4.1
Caven Chen 4 年之前
父節點
當前提交
aadf1e29b5
共有 1 個檔案被更改,包括 13 行新增0 行删除
  1. 13
    0
      modules/viewer/Viewer.js

+ 13
- 0
modules/viewer/Viewer.js 查看文件

@@ -337,6 +337,19 @@ class Viewer {
return this
}

/**
*
* @param windowPosition
* @returns {Promise}
*/
getImageryLayerInfo(windowPosition) {
let ray = this._delegate.camera.getPickRay(windowPosition)
return this._delegate.imageryLayers.pickImageryLayerFeatures(
ray,
this._delegate.scene
)
}

/**
* Adds the terrain
* @param terrain

Loading…
取消
儲存