From 0215062e559a7241e2bb1bc819cc2ddfcea266b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?junh=5Feee=28=EC=9D=B4=EC=A4=80=ED=9D=AC=29?= Date: Wed, 25 Oct 2023 18:34:41 +0900 Subject: [PATCH] =?UTF-8?q?laanc=20=EB=B9=84=ED=96=89=EA=B5=AC=EC=97=AD=20?= =?UTF-8?q?20=EA=B0=9C=EA=B9=8C=EC=A7=80=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/laanc/map/FlightArea.js | 2 +- src/components/map/mapbox/draw/LaancDrawControl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/laanc/map/FlightArea.js b/src/components/laanc/map/FlightArea.js index fb173a4a..6366d185 100644 --- a/src/components/laanc/map/FlightArea.js +++ b/src/components/laanc/map/FlightArea.js @@ -493,7 +493,7 @@ export default function FlightArea({ }; const handlerAddClick = () => { - if (!addData.isAddable) { + if (!addData.isAddable || !addData.overAdd) { handlerAddChange('isAddable', true); const obj = drawObj .getAll() diff --git a/src/components/map/mapbox/draw/LaancDrawControl.js b/src/components/map/mapbox/draw/LaancDrawControl.js index 027312ae..e46b059e 100644 --- a/src/components/map/mapbox/draw/LaancDrawControl.js +++ b/src/components/map/mapbox/draw/LaancDrawControl.js @@ -425,7 +425,7 @@ export const LaancDrawControl = props => { props.setViewCoordObj(viewCoordObj); - if (viewCoordObj.length > 1) { + if (viewCoordObj.length > 19) { props.handlerAddChange('overAdd', true); } else { props.handlerAddChange('isViewAdd', true);