diff --git a/src/components/map/mapbox/draw/LaancDrawControl.js b/src/components/map/mapbox/draw/LaancDrawControl.js index 670e40c2..bb0edec3 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);