Browse Source

fix/ 운항과 비행구역 미표출 현상 수정

master
junh_eee(이준희) 4 weeks ago
parent
commit
75ca927488
  1. 6
      src/containers/flight/OperationApprovalsContainer.js

6
src/containers/flight/OperationApprovalsContainer.js

@ -317,7 +317,7 @@ export default function OperationApprovalsContainer({ mode }) {
//현재 선택한 sno 및 areacoordList 저장
const handlerDetail = async area => {
console.log('>>', area);
setSelected(area[0].planAreaSno);
setSelected([area[0].planAreaSno]);
dispatch(clientSaveAreaCoordinateList(area));
@ -430,7 +430,7 @@ export default function OperationApprovalsContainer({ mode }) {
fitZoomPaths = enveloped.geometry.coordinates[0];
handlerFitBounds(mapObject, fitZoomPaths, 400, 'POLYGON', 'flight');
if (areaCoordList.length !== 1 || !areaCoordList[0]?.key) {
// if (areaCoordList.length !== 1 || !areaCoordList[0]?.key) {
mapObject?.getSource('operationLayer')?.setData(operationLayer);
let dataBlock = null;
mapObject?.on('mousemove', 'polygon-flight', e => {
@ -479,7 +479,7 @@ export default function OperationApprovalsContainer({ mode }) {
dataBlock.remove();
}
});
}
// }
}
};

Loading…
Cancel
Save