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(() => {
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 = '';
}

Loading…
Cancel
Save