From ee28c647f11fc8a38f1234142b9da880db55275e 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: Mon, 7 Nov 2022 18:14:55 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EA=B9=80=ED=8F=AC=EA=B3=B5=ED=95=AD=20?= =?UTF-8?q?=EA=B2=A9=EC=9E=90=EB=AC=B4=EB=8A=AC=20=EA=B3=B5=EC=97=AD=202km?= =?UTF-8?q?=20->=201km=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../map/naver/feature/FeatureAirZone.js | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/components/map/naver/feature/FeatureAirZone.js b/src/components/map/naver/feature/FeatureAirZone.js index 6f10663..a157c4e 100644 --- a/src/components/map/naver/feature/FeatureAirZone.js +++ b/src/components/map/naver/feature/FeatureAirZone.js @@ -140,8 +140,10 @@ export const FeatureAirZone = props => { for (let i = 0; i < 4; i++) { angle += 90; let buffer = 0; - for (let j = 0; j < 4; j++) { - buffer += 2000; + // for (let j = 0; j < 4; j++) { + for (let j = 0; j < 9; j++) { + // buffer += 2000; + buffer += 1000; const coord = new naver.maps.EPSG3857.getDestinationCoord( position, @@ -151,13 +153,27 @@ export const FeatureAirZone = props => { let reduce = 0; if (j === 0) { - reduce = 218.6; + // reduce = 218.6; + reduce = 54.4; } else if (j === 1) { - reduce = 905.4; + // reduce = 905.4; + reduce = 218.6; } else if (j === 2) { - reduce = 2195; + // reduce = 2195; + reduce = 500; } else if (j === 3) { - reduce = 4560.2; + // reduce = 4560.2; + reduce = 905.4; + } else if (j === 4) { + reduce = 1459.8; + } else if (j === 5) { + reduce = 2195; + } else if (j === 6) { + reduce = 3173.5; + } else if (j === 7) { + reduce = 4552.5; + } else if (j === 8) { + reduce = 6952.5; } if (angle % 180 == 0) { const polyEW = new naver.maps.Polyline({ From 8f010a234fe43cceae5a923b497c86d09e698272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kimjh=28=EA=B9=80=EC=9E=A5=ED=98=84=29?= Date: Mon, 7 Nov 2022 18:38:51 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EB=93=9C=EB=A1=A0=20=EA=B4=80=EC=A0=9C=20?= =?UTF-8?q?=EB=B9=84=EC=A0=95=EC=83=81=20=EA=B2=BD=EB=A1=9C=20=EA=B2=BD?= =?UTF-8?q?=EA=B3=A0=EC=9D=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/naver/dron/DronToast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/naver/dron/DronToast.js b/src/components/map/naver/dron/DronToast.js index 470cb52..25131ca 100644 --- a/src/components/map/naver/dron/DronToast.js +++ b/src/components/map/naver/dron/DronToast.js @@ -49,6 +49,7 @@ const DronToast = () => { }, onClose: () => { // setIs(true); + toggle(false); setToastId(null); } } @@ -59,7 +60,6 @@ const DronToast = () => { } } } - for (let i = 0; i < controlGpArcrftWarnList.length; i++) { warningList.push(controlGpArcrftWarnList[i].controlWarnCd); }