Browse Source

1.更换地图提供

2.处理mitt事件
master
DIAMOND 1 year ago
parent
commit
77ec03d845
  1. 15
      src/views/earthMap/edit/EarthComp.vue
  2. 985
      src/views/military/modules/ai/monitorArea/components/VCEarthViewer.vue

15
src/views/earthMap/edit/EarthComp.vue

@ -627,6 +627,9 @@
this.clearAlarmModel(eventSerialNum)
}
})
$mitt.on('fly', function (callback) {
that.fly(callback)
})
}
@ -841,7 +844,7 @@
});
}
async fly() {
async fly(callback:any = null) {
let position, rotation, viewDistance, duration;
//
let parentData =
@ -866,6 +869,11 @@
rotation = [data.rotationX, data.rotationY, data.rotationZ];
viewDistance = data.viewDistance;
duration = data.duration ? data.duration : 0;
// mitt
if(callback){
callback(position,rotation,viewDistance,duration);
return
}
this._earth.camera.flyTo(position, viewDistance, rotation, duration);
//
window.$flyTo = this.flyTo = () => {
@ -877,6 +885,11 @@
rotation = [parentData[0].rotationX, parentData[0].rotationY, parentData[0].rotationZ];
viewDistance = parentData[0].viewDistance;
duration = parentData[0].duration;
// mitt
if(callback){
callback(position,rotation,viewDistance,duration);
return
}
//
this._earth.camera.flyTo(position, viewDistance, rotation, duration);
//

985
src/views/military/modules/ai/monitorArea/components/VCEarthViewer.vue

File diff suppressed because it is too large
Loading…
Cancel
Save