Explorar el Código

improve the AroundView

tags/2.6.0
Caven Chen hace 4 años
padre
commit
44e2dcc101
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8
    2
      modules/animation/type/AroundView.js

+ 8
- 2
modules/animation/type/AroundView.js Ver fichero

@@ -52,9 +52,15 @@ class AroundView extends Animation {
if (this._heading >= Math.PI * 2 || this._heading <= -Math.PI * 2) {
this._heading = 0
}
this._viewer.scene.camera.setView({
this._viewer.camera.setView({
orientation: {
heading: this._heading
heading: this._heading,
pitch: this._options.pitch
? Cesium.Math.toRadians(this._options.pitch)
: this._viewer.camera.pitch,
roll: this._options.roll
? Cesium.Math.toRadians(this._options.pitch)
: this._viewer.camera.roll
}
})
}

Cargando…
Cancelar
Guardar