diff --git a/src/modules/control/map/reducers/controlMapReducer.ts b/src/modules/control/map/reducers/controlMapReducer.ts
index 49afabe..cbefdd2 100644
--- a/src/modules/control/map/reducers/controlMapReducer.ts
+++ b/src/modules/control/map/reducers/controlMapReducer.ts
@@ -11,11 +11,9 @@ const initialState = {
area0005: true, // 이착륙장(RC비행장)
area0006: true, // 초경량비행장치
sensor: 'dust',
-
+ isLaanc: false,
drawType: null,
-
ctrlDrawType: null,
-
drawCheck: ''
};
diff --git a/src/views/control/main/ControlMain.js b/src/views/control/main/ControlMain.js
index eea6ba4..56f0b6a 100644
--- a/src/views/control/main/ControlMain.js
+++ b/src/views/control/main/ControlMain.js
@@ -43,7 +43,11 @@ import { NavLink } from 'reactstrap';
const ControlMain = () => {
const dispatch = useDispatch();
- const { isClickObject } = useSelector(state => state.controlMapReducer);
+ const { isClickObject, isLaanc } = useSelector(
+ state => state.controlMapReducer
+ );
+ const mapControl = useSelector(state => state.controlMapReducer);
+
const { controlGpList, controlGroupAuthInfo } = useSelector(
state => state.controlGpState
);
@@ -53,6 +57,7 @@ const ControlMain = () => {
const { controlGpCountDrone, controlGpCountFlight } = useSelector(
state => state.controlGpCountState
);
+ console.log('>>>>', isClickObject);
// pav박람회 -> uam, 드론 구별을 위한 임시 코드
// (이 작업으로 고도화 하려면 추후에 서버에서 uam타입을 새로 더 받아 작업해야 함)
@@ -171,49 +176,106 @@ const ControlMain = () => {
}
};
+ const hadlerLaanc = () => {
+ if (isLaanc) mapControl.isLaanc = false;
+ else if (!isLaanc) mapControl.isLaanc = true;
+ };
return (
<>
-