From 69f4b06725adf6ed7b7ee35f530165b45ce2e90f 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, 22 Nov 2023 14:54:27 +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=207=EA=B0=9C=20=EC=A0=9C=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/laanc/map/LaancDrawControl.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/laanc/map/LaancDrawControl.js b/src/components/laanc/map/LaancDrawControl.js index df72a5c0..b57c2a2a 100644 --- a/src/components/laanc/map/LaancDrawControl.js +++ b/src/components/laanc/map/LaancDrawControl.js @@ -119,6 +119,12 @@ export const LaancDrawControl = props => { } } } + + if (state.currentVertexPosition > 6) { + drawObj.changeMode('direct_select', { + featureId: obj.id + }); + } }; // 도형 그리기 완료 시 @@ -568,7 +574,8 @@ export const LaancDrawControl = props => { handlerCreateGroupMarker(mapObject, data, area.areaType); } dispatch(drawTypeChangeAction('DONE')); - drawObj.changeMode('simple_select'); + // console.log('333'); + // drawObj.changeMode('simple_select'); } }); } else if (areas.length > 0 && areas[0].areaType) {