|
@@ -103,7 +103,13 @@
|
|
|
<script setup>
|
|
|
import {getCurrentInstance, ref, watch} from 'vue';
|
|
|
import useLayoutStore from '@/store/layout';
|
|
|
-import {drawRouteAuto, drawRouteManual, getVirtualFlyPoint, ShowThreeCubeDetail} from '@/utils/map/addLayer';
|
|
|
+import {
|
|
|
+ drawRouteAuto,
|
|
|
+ drawRouteManual,
|
|
|
+ getVirtualFlyPoint,
|
|
|
+ showRoutePath,
|
|
|
+ ShowThreeCubeDetail, showVritualRoutePath
|
|
|
+} from '@/utils/map/addLayer';
|
|
|
import {searchPathByPoint, queryGridByLine, routeRePlan} from '@/service/map';
|
|
|
import { useMapStore } from "@/store/map.js";
|
|
|
const { proxy } = getCurrentInstance();
|
|
@@ -340,15 +346,24 @@ function auxiliaryModification(){
|
|
|
|
|
|
function virtualFly(){
|
|
|
isFly.value = !isFly.value;
|
|
|
- debugger
|
|
|
+ drawRouteManual({ status: 'hide' });
|
|
|
+ ShowThreeCubeDetail({
|
|
|
+ status: 'hide'
|
|
|
+ });
|
|
|
+ showVritualRoutePath({
|
|
|
+ id: "virtualFlyPath",
|
|
|
+ paths: mapStore.draw_geometry.paths,
|
|
|
+ color:"#0095ff",
|
|
|
+ status: isFly.value ? 'show' : 'hide'
|
|
|
+ });
|
|
|
getVirtualFlyPoint({
|
|
|
- status:"show",
|
|
|
+ status: 'show',
|
|
|
flyList:{
|
|
|
path: mapStore.draw_geometry.paths[0],
|
|
|
status:isFly.value?1:3, //1:正常,2:悬停,3:停止,4:飞行故障
|
|
|
uavid: "9556344a-c055-4156-86d4-bc57930275a2",
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
|
|
@@ -368,10 +383,23 @@ function handleClear() {
|
|
|
drawRouteManual({ status: 'hide' });
|
|
|
ShowThreeCubeDetail({
|
|
|
status: 'hide'
|
|
|
- })
|
|
|
+ });
|
|
|
+ showRoutePath({
|
|
|
+ id: "virtualFlyPath",
|
|
|
+ status: 'hide'
|
|
|
+ });
|
|
|
+ showVritualRoutePath({
|
|
|
+ status: 'hide',
|
|
|
+ flyList:{
|
|
|
+ path: mapStore.draw_geometry.paths[0],
|
|
|
+ status:3, //1:正常,2:悬停,3:停止,4:飞行故障
|
|
|
+ uavid: "9556344a-c055-4156-86d4-bc57930275a2",
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
watch(() => mapStore.draw_geometry, (val) => {
|
|
|
+ debugger
|
|
|
getDrawGeometry()
|
|
|
}, {
|
|
|
deep: true
|