Compare commits

..

3 Commits

Author SHA1 Message Date
guangyin 375d511c07 Merge branch 'master' into guangyin 2023-05-19 17:19:32 +08:00
guangyin 4d6ebe4af4 Merge branch 'master' into guangyin
# Conflicts:
#	src/views/overview.component.html
#	src/views/overview.component.ts
2023-05-19 17:18:21 +08:00
guangyin 3c4cbd6e49 feat:右侧全屏后添加暂停播放按钮 2023-05-19 16:48:45 +08:00
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,8 @@ export default class OverViewComponent extends BaseComponent {
activeNames = ['1'] activeNames = ['1']
//展示告警详情右侧 //展示告警详情右侧
waringRightShow = false waringRightShow = false
//显示展示隐藏按钮
showPlay = false
// 是否隐藏除地图外所有板块 // 是否隐藏除地图外所有板块
public hideAllPanel = false; public hideAllPanel = false;
@ -190,6 +192,7 @@ export default class OverViewComponent extends BaseComponent {
this.hideAllPanel = !this.hideAllPanel; this.hideAllPanel = !this.hideAllPanel;
this.drawerChange(!this.hideAllPanel) this.drawerChange(!this.hideAllPanel)
if(!this.hideAllPanel){ if(!this.hideAllPanel){
this.showPlay = false
this.player.api.cameraTour.stop(); this.player.api.cameraTour.stop();
this.player.api.settings.setInteractiveMode(0) this.player.api.settings.setInteractiveMode(0)
} }
@ -353,6 +356,7 @@ export default class OverViewComponent extends BaseComponent {
this.toggleLayer(item) this.toggleLayer(item)
} }
}) })
this.showPlay = true
this.player.api.cameraTour.play(item.id) this.player.api.cameraTour.play(item.id)
} }
closeRight(){ closeRight(){