Browse Source

fix the roaming third view setting pitch bug

tags/2.0.0
Caven Chen 4 years ago
parent
commit
9ce8bfaaa0
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      modules/roaming/RoamingPath.js

+ 5
- 1
modules/roaming/RoamingPath.js View File

@@ -203,7 +203,11 @@ class RoamingPath {
} else if (viewMode === RoamingViewMode.TP) {
camera.lookAt(
tickPosition,
new Cesium.HeadingPitchRange(0, -90, viewOption.range || 1000)
new Cesium.HeadingPitchRange(
0,
Cesium.Math.toRadians(viewOption.pitch || -90),
viewOption.range || 1000
)
)
}
} else {

Loading…
Cancel
Save