From d27a599ff14f17d411537946201040342a0ae07d 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: Tue, 28 Nov 2023 19:17:08 +0900 Subject: [PATCH] =?UTF-8?q?laanc=20=EB=B9=84=ED=96=89=EA=B5=AC=EC=97=AD=20?= =?UTF-8?q?=EC=A2=8C=ED=91=9C=EC=A0=95=EB=B3=B4=20=EC=B9=B4=EB=93=9C=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=EC=8B=9C=20=EC=97=90=EB=9F=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/laanc/map/LaancAreaMap.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/laanc/map/LaancAreaMap.js b/src/components/laanc/map/LaancAreaMap.js index 47dcdeb..40596d7 100644 --- a/src/components/laanc/map/LaancAreaMap.js +++ b/src/components/laanc/map/LaancAreaMap.js @@ -399,16 +399,18 @@ export default function LaancAreaMap({ className='coords-box' key={i} onClick={() => { - if (!isDrag) { - const allObj = drawObj - .getAll() - .features.filter( - o => o.properties.id !== 'BUFFER' && o.properties.id - ); - - drawObj.changeMode('direct_select', { - featureId: allObj[i].id - }); + if (mapControl.drawType === 'DONE') { + if (!isDrag) { + const allObj = drawObj + .getAll() + .features.filter( + o => o.properties.id !== 'BUFFER' && o.properties.id + ); + + drawObj.changeMode('direct_select', { + featureId: allObj[i].id + }); + } } }} >