Explorar el Código

add method getImageryLayerInfo

tags/2.4.1
Caven Chen hace 4 años
padre
commit
aadf1e29b5
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13
    0
      modules/viewer/Viewer.js

+ 13
- 0
modules/viewer/Viewer.js Ver fichero

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

Cargando…
Cancelar
Guardar