Переглянути джерело

improve the AroundView

tags/2.6.0
Caven Chen 4 роки тому
джерело
коміт
44e2dcc101
1 змінених файлів з 8 додано та 2 видалено
  1. 8
    2
      modules/animation/type/AroundView.js

+ 8
- 2
modules/animation/type/AroundView.js Переглянути файл

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

Завантаження…
Відмінити
Зберегти