Skip to content

Commit

Permalink
cesium: set camera to follow after flying to location
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Oct 27, 2024
1 parent f2c94b4 commit aa6f61e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/CesiumViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,9 @@ export default {
this.changeCamera()
if (this.state.vehicle === 'boat') {
setTimeout(() => {
this.viewer.flyTo(this.model, { offset: new HeadingPitchRange(0, -0.5, 100) })
this.viewer.flyTo(this.model, { offset: new HeadingPitchRange(0, -0.5, 100) }).then(() => {
this.changeCamera()
})
}, 3000)
}
},
Expand Down

0 comments on commit aa6f61e

Please sign in to comment.