From 17ab64a05ca2d4cdd8975582c7f3e6ba81431294 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 16:19:12 +0900 Subject: [PATCH] =?UTF-8?q?laanc=20=EB=B9=84=ED=96=89=EA=B5=AC=EC=97=AD=20?= =?UTF-8?q?=EB=AA=A8=EB=8B=AC=20=EB=AC=B8=EA=B5=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../map/mapbox/draw/LaancDrawControl.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/map/mapbox/draw/LaancDrawControl.js b/src/components/map/mapbox/draw/LaancDrawControl.js index 670e40c..bb0edec 100644 --- a/src/components/map/mapbox/draw/LaancDrawControl.js +++ b/src/components/map/mapbox/draw/LaancDrawControl.js @@ -79,17 +79,6 @@ export const LaancDrawControl = props => { const type = handlerReturnMode(drawObj.getMode()); const obj = state[type?.toLowerCase()]; - // const features = mapObject.queryRenderedFeatures(e.point, { - // layers: ['maine'] - // }); - // if (features.length > 0 && obj) { - // if (features[0].properties.description.includes('김포공항 비행불가')) { - // if (!obj?.properties?.isUnable) { - // drawObj.setFeatureProperty(obj.id, 'isUnable', true); - // } - // } - // } - if (type && obj) { const feature = drawObj.get(obj.id); const coordinates = feature.geometry.coordinates; @@ -343,7 +332,13 @@ export const LaancDrawControl = props => { if (isBreak) { props.setModal({ title: '비행 불가 지역', - desc: <>비행불가!, + desc: ( + <> + 설정하신 비행구역 중 허용고도가 0m인 구역이 있습니다. +
+ 비행구역 설정 시 허용고도를 다시 확인해주시기 바랍니다. + + ), isOpen: true }); handlerRemoveError(data.id);