|
|
@ -260,40 +260,24 @@ export default {
|
||||||
},
|
},
|
||||||
handleDroneClick(value) {
|
handleDroneClick(value) {
|
||||||
console.log(value, "value");
|
console.log(value, "value");
|
||||||
|
if (value.drone_lon == 0 || value.drone_lat == 0) {
|
||||||
|
console.log("经纬度为0");
|
||||||
|
} else {
|
||||||
window.marsMap.setCameraView({
|
window.marsMap.setCameraView({
|
||||||
lat: value.drone_lat,
|
lat: value.drone_lat,
|
||||||
lng: value.drone_lon,
|
lng: value.drone_lon,
|
||||||
alt: value.height + 800,
|
alt: value.height + 800,
|
||||||
pitch: -90
|
pitch: -90
|
||||||
});
|
});
|
||||||
if (value.drone_lon == 0 || value.drone_lat == 0) {
|
|
||||||
console.log("经纬度为0");
|
|
||||||
} else {
|
|
||||||
let graphicLayer = window.marsMap.getLayerById("uavFiex");
|
let graphicLayer = window.marsMap.getLayerById("uavFiex");
|
||||||
// let startPoint = graphicLayer.getGraphicById(value.BatchId + "start");
|
// let startPoint = graphicLayer.getGraphicById(value.BatchId + "start");
|
||||||
if (graphicLayer) {
|
if (graphicLayer) {
|
||||||
graphicLayer.eachGraphic((car) => {
|
graphicLayer.eachGraphic((car) => {
|
||||||
// 取出对应无人机的轨迹列表
|
// 取出对应无人机的轨迹列表
|
||||||
//打击之前
|
|
||||||
if (value.BatchId === car.id) {
|
if (value.BatchId === car.id) {
|
||||||
// car.openPopup();
|
// car.openPopup();
|
||||||
console.log(car, "car.polyline");
|
console.log(car, "car.polyline");
|
||||||
car.polyline.show = !car.polyline.show; // 轨迹线
|
car.polyline.show = !car.polyline.show; // 轨迹线
|
||||||
// if (car.polyline.show) {
|
|
||||||
// car.setOptions({
|
|
||||||
// polyline: {
|
|
||||||
// width: 2,
|
|
||||||
// opacity: 1,
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// car.setOptions({
|
|
||||||
// polyline: {
|
|
||||||
// width: 2,
|
|
||||||
// opacity: 0,
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 916 B |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 469 B |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 774 B |
|
Before Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 409 B |