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