|
|
@ -57,8 +57,6 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
// 현재 선택한 데이터 구분
|
|
|
|
// 현재 선택한 데이터 구분
|
|
|
|
const [selected, setSelected] = useState(null); |
|
|
|
const [selected, setSelected] = useState(null); |
|
|
|
const [selectedPlanSno, setSelectedPlanSno] = useState(null); |
|
|
|
const [selectedPlanSno, setSelectedPlanSno] = useState(null); |
|
|
|
// 다른 더보기에서 단건 조회 시 포커스를 위한 zoneNo 저장
|
|
|
|
|
|
|
|
const [diffRowZoneNo, setDiffRowZoneNo] = useState(0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const [isMapLoading, setIsMapLoading] = useState(false); |
|
|
|
const [isMapLoading, setIsMapLoading] = useState(false); |
|
|
|
// 비행구역 그리기
|
|
|
|
// 비행구역 그리기
|
|
|
@ -228,14 +226,6 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, []); |
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
// 다른 더보기의 단건 조회 시
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
if (diffRowZoneNo > 0) { |
|
|
|
|
|
|
|
const area = areaCoordList.filter(k => k.zoneNo === diffRowZoneNo); |
|
|
|
|
|
|
|
handlerDetail(area); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, [diffRowZoneNo]); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleDragEnd = e => { |
|
|
|
const handleDragEnd = e => { |
|
|
|
setIsPopup(true); |
|
|
|
setIsPopup(true); |
|
|
|
const el = document.querySelector('.flight-approval-layer'); |
|
|
|
const el = document.querySelector('.flight-approval-layer'); |
|
|
@ -398,10 +388,6 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
handlerFitBounds(mapObject, fitZoomPaths, 400, 'POLYGON', 'flight'); |
|
|
|
handlerFitBounds(mapObject, fitZoomPaths, 400, 'POLYGON', 'flight'); |
|
|
|
|
|
|
|
|
|
|
|
if (areaCoordList.length !== 1 || !areaCoordList[0]?.key) { |
|
|
|
if (areaCoordList.length !== 1 || !areaCoordList[0]?.key) { |
|
|
|
if (diffRowZoneNo > 0) { |
|
|
|
|
|
|
|
setDiffRowZoneNo(0); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
handlerInfoWindow(areaCoordList); |
|
|
|
handlerInfoWindow(areaCoordList); |
|
|
|
mapObject?.getSource('operationLayer')?.setData(operationLayer); |
|
|
|
mapObject?.getSource('operationLayer')?.setData(operationLayer); |
|
|
|
} |
|
|
|
} |
|
|
@ -907,7 +893,6 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
selected={selected} |
|
|
|
selected={selected} |
|
|
|
selectedPlanSno={selectedPlanSno} |
|
|
|
selectedPlanSno={selectedPlanSno} |
|
|
|
handlerDetail={handlerDetail} |
|
|
|
handlerDetail={handlerDetail} |
|
|
|
setDiffRowZoneNo={setDiffRowZoneNo} |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|