Browse Source

비행 구역 설정 중복 좌표 수정

pull/2/head
김장현 2 years ago
parent
commit
af8b0cebb4
  1. 15
      src/components/basis/flight/plan/FlightPlanAreaMap.js

15
src/components/basis/flight/plan/FlightPlanAreaMap.js

@ -8,8 +8,11 @@ import {
} from '../../../../modules/control/map/actions/controlMapActions';
import { FlightPlanDraw } from '../../../map/naver/draw/FlightPlanDraw';
import { initFlightBas } from '../../../../modules/basis/flight/models/basisFlightModel';
import { AREA_COORDINATE_LIST_SAVE } from '../../../../modules/basis/flight/actions/basisFlightAction';
import {flightPlanAPI} from '../../../../modules/basis/flight/apis/basisFlightApi'
import {
AREA_COORDINATE_LIST_SAVE,
AREA_DETAIL_INIT
} from '../../../../modules/basis/flight/actions/basisFlightAction';
import { flightPlanAPI } from '../../../../modules/basis/flight/apis/basisFlightApi';
const FlightPlanAreaMap = props => {
const dispatch = useDispatch();
@ -29,6 +32,9 @@ const FlightPlanAreaMap = props => {
useEffect(() => {
NaverMapInit();
return () => {
dispatch(AREA_DETAIL_INIT());
};
}, []);
useEffect(() => {
@ -56,7 +62,7 @@ const FlightPlanAreaMap = props => {
}
}
}
}, [areaCoordList]);
}, [areaCoordList, map]);
const ModeInit = () => {
setMode(mapControl.drawType);
@ -138,8 +144,7 @@ const FlightPlanAreaMap = props => {
const handleSearch = async () => {
const res = await flightPlanAPI.searchArea({ query: query });
console.log(res.data.items, '<<<')
}
};
const handleChange = e => {
const { name, value } = e.target;

Loading…
Cancel
Save