Procházet zdrojové kódy

add method getImageryLayerInfo

tags/2.4.1
Caven Chen před 4 roky
rodič
revize
aadf1e29b5
1 změnil soubory, kde provedl 13 přidání a 0 odebrání
  1. 13
    0
      modules/viewer/Viewer.js

+ 13
- 0
modules/viewer/Viewer.js Zobrazit soubor

@@ -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

Načítá se…
Zrušit
Uložit