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