feat:修改导览交互
parent
c6caff4dba
commit
b05d7fb1ce
|
@ -63,8 +63,8 @@
|
|||
|
||||
</div>
|
||||
<div :style="{right:!hideAllPanel?'-90px':0}" class="right-control">
|
||||
<div @click="playAction('play')" class="play-btn"><i class="el-icon-video-pause"></i><span>暂停</span></div>
|
||||
<div @click="playAction('pause')" class="play-btn"><i class="el-icon-video-play"></i><span>继续</span></div>
|
||||
<div @click="playAction('pause')" class="play-btn"><i class="el-icon-video-pause"></i><span>暂停</span></div>
|
||||
<div @click="playAction('resume')" class="play-btn"><i class="el-icon-video-play"></i><span>继续</span></div>
|
||||
</div>
|
||||
|
||||
<!-- 大号弹窗组件-->
|
||||
|
|
|
@ -247,7 +247,7 @@ export default class OverViewComponent extends BaseComponent {
|
|||
2
|
||||
)
|
||||
setTimeout(()=>{
|
||||
this.player.api.settings.setInteractiveMode(1);
|
||||
this.player.api.settings.setInteractiveMode(2);
|
||||
this.player.api.settings.setMainUIVisibility(false)
|
||||
},2000)
|
||||
|
||||
|
@ -347,6 +347,11 @@ export default class OverViewComponent extends BaseComponent {
|
|||
//进入路线导览
|
||||
playView(item){
|
||||
this.toggleAllPanel()
|
||||
this.layerData.forEach(item=>{
|
||||
if(item.selected){
|
||||
this.toggleLayer(item)
|
||||
}
|
||||
})
|
||||
this.player.api.cameraTour.play(item.id)
|
||||
}
|
||||
closeRight(){
|
||||
|
@ -363,7 +368,7 @@ export default class OverViewComponent extends BaseComponent {
|
|||
}
|
||||
//暂停继续
|
||||
playAction(type){
|
||||
console.log(type)
|
||||
this.player.api.cameraTour[type]()
|
||||
}
|
||||
deactivated(){
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue