ソースを参照

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

読み込み中…
キャンセル
保存