Browse Source

laanc 비행구역 모달 문구 수정

pull/2/head
junh_eee(이준희) 11 months ago
parent
commit
17ab64a05c
  1. 19
      src/components/map/mapbox/draw/LaancDrawControl.js

19
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인 구역이 있습니다.
<br />
비행구역 설정 허용고도를 다시 확인해주시기 바랍니다.
</>
),
isOpen: true
});
handlerRemoveError(data.id);

Loading…
Cancel
Save