Преглед изворни кода

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…
Откажи
Сачувај