| | |
| | | // }) |
| | | |
| | | flyByArea(sn, dockPoint, jsonPath, radius, deviceSn, payloadIndex).then(res => { |
| | | const targetPoint = res.data |
| | | console.log('targetPoint====', targetPoint) |
| | | const targetPoint = res.data || [] |
| | | // 机场位置 |
| | | const startPoint = { |
| | | lon: props.deviceInfo.dock.basic_osd.longitude, |
| | | lat: props.deviceInfo.dock.basic_osd.latitude |
| | | } |
| | | targetPoint.unshift(startPoint) |
| | | console.log('targetPoint====', targetPoint) |
| | | // 获取到点之后在图上绘点 |
| | | targetPoint.forEach((point: { lon: number; lat: number }, index: number) => { |
| | | console.log(point) |