|
|
@ -58,7 +58,7 @@ export const FlightPlanDraw = props => { |
|
|
|
const handleBufferList = () => { |
|
|
|
const handleBufferList = () => { |
|
|
|
dispatch(Actions.FLIGHT_PLAN_AREA_BUFFER_LIST.request(areaDetail)); |
|
|
|
dispatch(Actions.FLIGHT_PLAN_AREA_BUFFER_LIST.request(areaDetail)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
drawInit(); |
|
|
|
drawInit(); |
|
|
|
}, [mapControl.drawType]) |
|
|
|
}, [mapControl.drawType]) |
|
|
@ -76,7 +76,6 @@ export const FlightPlanDraw = props => { |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if(pastPolyline) { |
|
|
|
if(pastPolyline) { |
|
|
|
console.log(">>>>>>>>>>>>>>>>>>>>") |
|
|
|
|
|
|
|
handleBufferList(); |
|
|
|
handleBufferList(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, [areaDetail]) |
|
|
|
}, [areaDetail]) |
|
|
@ -200,7 +199,7 @@ export const FlightPlanDraw = props => { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setAlertModal({ |
|
|
|
setAlertModal({ |
|
|
|
isOpen: true, |
|
|
|
isOpen: true, |
|
|
|
title: '우회 여부 확인', |
|
|
|
title: '좌표 최소 개수', |
|
|
|
desc: '좌표를 두 개 점으로 이어주세요.' |
|
|
|
desc: '좌표를 두 개 점으로 이어주세요.' |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -229,6 +228,11 @@ export const FlightPlanDraw = props => { |
|
|
|
setPolygon(polygon); |
|
|
|
setPolygon(polygon); |
|
|
|
setAreaInfo(polygonpaths); |
|
|
|
setAreaInfo(polygonpaths); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
setAlertModal({ |
|
|
|
|
|
|
|
isOpen: true, |
|
|
|
|
|
|
|
title: '좌표 최소 개수', |
|
|
|
|
|
|
|
desc: '좌표를 세 개 점으로 이어주세요.' |
|
|
|
|
|
|
|
}) |
|
|
|
polygon.setMap(null) |
|
|
|
polygon.setMap(null) |
|
|
|
polygon = ''; |
|
|
|
polygon = ''; |
|
|
|
} |
|
|
|
} |
|
|
|