|
|
@ -79,17 +79,6 @@ export const LaancDrawControl = props => { |
|
|
|
const type = handlerReturnMode(drawObj.getMode()); |
|
|
|
const type = handlerReturnMode(drawObj.getMode()); |
|
|
|
const obj = state[type?.toLowerCase()]; |
|
|
|
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) { |
|
|
|
if (type && obj) { |
|
|
|
const feature = drawObj.get(obj.id); |
|
|
|
const feature = drawObj.get(obj.id); |
|
|
|
const coordinates = feature.geometry.coordinates; |
|
|
|
const coordinates = feature.geometry.coordinates; |
|
|
@ -343,7 +332,13 @@ export const LaancDrawControl = props => { |
|
|
|
if (isBreak) { |
|
|
|
if (isBreak) { |
|
|
|
props.setModal({ |
|
|
|
props.setModal({ |
|
|
|
title: '비행 불가 지역', |
|
|
|
title: '비행 불가 지역', |
|
|
|
desc: <>비행불가!</>, |
|
|
|
desc: ( |
|
|
|
|
|
|
|
<> |
|
|
|
|
|
|
|
설정하신 비행구역 중 허용고도가 0m인 구역이 있습니다. |
|
|
|
|
|
|
|
<br /> |
|
|
|
|
|
|
|
비행구역 설정 시 허용고도를 다시 확인해주시기 바랍니다. |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
), |
|
|
|
isOpen: true |
|
|
|
isOpen: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
handlerRemoveError(data.id); |
|
|
|
handlerRemoveError(data.id); |
|
|
|