diff --git a/src/components/laanc/map/FlightArea.js b/src/components/laanc/map/FlightArea.js index 972564d..7928b0f 100644 --- a/src/components/laanc/map/FlightArea.js +++ b/src/components/laanc/map/FlightArea.js @@ -42,6 +42,7 @@ import { WeatherContainer } from '../../../containers/basis/flight/plan/WeatherC import { initFlightBas } from '../../../modules/laanc/models/laancModels'; import * as LaancAction from '../../../modules/laanc/actions/laancActions'; import LaancDrawModal from './LaancDrawModal'; +import { handlerRemoveGroupMarker } from '../../../utility/DrawUtil'; const initialAddData = { isAddable: false, @@ -84,7 +85,8 @@ export default function FlightArea({ const [saveData, setSaveData] = useState(); const [saveElev, setSaveElev] = useState(); - const { laancElev } = useSelector(state => state.laancState); + + // const [isDrawDone, setIsDrawDone] = useState(false); //날씨 임시 데이터 const [wheather, setWheather] = useState([]); @@ -181,8 +183,16 @@ export default function FlightArea({ }; const handlerDrawType = val => { + // if (drawObj.getMode().includes('draw')) { + // const isEmpty = drawObj + // .getAll() + // .features.filter(o => !o.properties.id && o.properties.id !== 'BUFFER'); + // drawObj.delete(isEmpty[0].id); + // handlerRemoveGroupMarker(isEmpty[0].id); + // } + // dispatch(drawTypeChangeAction(val)); + if (drawObj.getMode().includes('draw')) { - // alert('비행구역설정 완료 후 타입을 변경해주세요.'); setModal({ title: '비행 구역 설정', desc: ( @@ -523,7 +533,7 @@ export default function FlightArea({ const obj = drawObj .getAll() .features.filter(obj => obj.properties.id !== 'BUFFER'); - handlerDrawType(obj[0].properties.id); + // handlerDrawType(obj[0].properties.id); } }; @@ -591,6 +601,8 @@ export default function FlightArea({ setSaveData={setSaveData} handlerSaveElev={handlerSaveElev} setModal={setModal} + // isDrawDone={isDrawDone} + // setIsDrawDone={setIsDrawDone} /> @@ -636,7 +648,7 @@ export default function FlightArea({ {addData.isViewAdd ? (