|
@@ -57,7 +57,6 @@ export default class viewManagement extends Vue {
|
|
|
this.viewer = (window as any).viewer
|
|
|
}
|
|
|
//漫游数据
|
|
|
- timeout = null //定时器
|
|
|
isRoaming: boolean = false //漫游面板
|
|
|
viewName = ''
|
|
|
tipVisible = false
|
|
@@ -256,7 +255,7 @@ export default class viewManagement extends Vue {
|
|
|
up: new Cesium.Cartesian3(camera.up.x, camera.up.y, camera.up.z)
|
|
|
},
|
|
|
complete: () => {
|
|
|
- that.timeout = setTimeout(() => {
|
|
|
+ setTimeout(() => {
|
|
|
if (i < playList.length - 1) {
|
|
|
i += 1
|
|
|
fly(JSON.parse(playList[i].camera))
|
|
@@ -292,7 +291,7 @@ export default class viewManagement extends Vue {
|
|
|
this.isRoaming = false
|
|
|
this.currentViewIndex = null
|
|
|
;(this.$parent as any).isRoaming = false
|
|
|
- if (this.timeout) clearTimeout(this.timeout)
|
|
|
+ this.viewer.camera.cancelFlight() //取消飞行
|
|
|
}
|
|
|
}
|
|
|
</script>
|