From b866bbfda1366563a44c36a5487e9446338c7755 Mon Sep 17 00:00:00 2001 From: junh_eee Date: Mon, 29 Aug 2022 18:35:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=ED=96=89=EA=B5=AC=EC=97=AD=20-=20?= =?UTF-8?q?=ED=8F=B4=EB=A6=AC=EA=B3=A4=20=EC=A2=8C=ED=91=9C=20=EC=B5=9C?= =?UTF-8?q?=EC=86=8C=20=EA=B0=9C=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/naver/draw/FlightPlanDraw.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 = ''; }