Browse Source

laanc 비행구역 20개까지 설정

pull/2/head
junh_eee(이준희) 11 months ago
parent
commit
0215062e55
  1. 2
      src/components/laanc/map/FlightArea.js
  2. 2
      src/components/map/mapbox/draw/LaancDrawControl.js

2
src/components/laanc/map/FlightArea.js

@ -493,7 +493,7 @@ export default function FlightArea({
};
const handlerAddClick = () => {
if (!addData.isAddable) {
if (!addData.isAddable || !addData.overAdd) {
handlerAddChange('isAddable', true);
const obj = drawObj
.getAll()

2
src/components/map/mapbox/draw/LaancDrawControl.js

@ -425,7 +425,7 @@ export const LaancDrawControl = props => {
props.setViewCoordObj(viewCoordObj);
if (viewCoordObj.length > 1) {
if (viewCoordObj.length > 19) {
props.handlerAddChange('overAdd', true);
} else {
props.handlerAddChange('isViewAdd', true);

Loading…
Cancel
Save