飞行器回仓后取消视角,优化飞行作业机场和飞行器信息不展示问题

main
刘妍 3 days ago
parent 7ba595e8c7
commit 951adc0c4b

@ -323,7 +323,9 @@
flyToFormVisible.value = false;
//
uavLive.value = false;
changeSelectValue.value = value;
if (value) {
changeSelectValue.value = value;
}
const topicUrl = 'thing/product/' + airPortInfo.sn + '/osd';
//
clientSubscribe(topicUrl, { qos: 1 });

@ -2961,6 +2961,16 @@
addGroundLine(route, 'uav-route');
addRectSensor(route, 'uav-route');
}
if(props.uavTrack.mode_code == 0){
//
let rectId = graphicLayer.getGraphicById('uav-route-rectSensor');
let pointId = graphicLayer.getGraphicById('uav-route-groundPoint');
let lineId = graphicLayer.getGraphicById('uav-route-groundLine');
graphicLayer.removeGraphic(rectId);
graphicLayer.removeGraphic(pointId);
graphicLayer.removeGraphic(lineId);
return;
}
if (props.uavTrack.longitude) {
const positionVal = Cesium.Cartesian3.fromDegrees(
props.uavTrack.longitude,

Loading…
Cancel
Save