| | |
| | | import { parseJsonFile } from '/@/utils/geo-utils' |
| | | import { cesiumOperation } from '/@/hooks/use-cesium-tsa' |
| | | import * as Cesium from 'cesium' |
| | | import { start } from 'repl' |
| | | const props = defineProps<{ |
| | | sn: string, |
| | | deviceInfo: DeviceInfoType, |
| | |
| | | flyByArea(sn, dockPoint, jsonPath, radius, deviceSn, payloadIndex).then(res => { |
| | | const targetPoint = res.data |
| | | console.log('targetPoint====', targetPoint) |
| | | // 机场位置 |
| | | const startPoint = { |
| | | lon: props.deviceInfo.dock.basic_osd.longitude, |
| | | lat: props.deviceInfo.dock.basic_osd.latitude |
| | | } |
| | | targetPoint.unshift(startPoint) |
| | | // 获取到点之后在图上绘点 |
| | | targetPoint.forEach((point, index) => { |
| | | targetPoint.forEach((point: { lon: number; lat: number }, index: number) => { |
| | | console.log(point) |
| | | const setting = { |
| | | longitude: point.lon, |