Browse Source

비행구역 - 폴리곤 좌표 최소 개수

feature/auth
junh_eee 2 years ago
parent
commit
b866bbfda1
  1. 8
      src/components/map/naver/draw/FlightPlanDraw.js

8
src/components/map/naver/draw/FlightPlanDraw.js

@ -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 = '';
} }

Loading…
Cancel
Save