Browse Source

laanc 비행구역 좌표정보 카드 선택시 에러 수정

pull/2/head
junh_eee(이준희) 10 months ago
parent
commit
d27a599ff1
  1. 22
      src/components/laanc/map/LaancAreaMap.js

22
src/components/laanc/map/LaancAreaMap.js

@ -399,16 +399,18 @@ export default function LaancAreaMap({
className='coords-box' className='coords-box'
key={i} key={i}
onClick={() => { onClick={() => {
if (!isDrag) { if (mapControl.drawType === 'DONE') {
const allObj = drawObj if (!isDrag) {
.getAll() const allObj = drawObj
.features.filter( .getAll()
o => o.properties.id !== 'BUFFER' && o.properties.id .features.filter(
); o => o.properties.id !== 'BUFFER' && o.properties.id
);
drawObj.changeMode('direct_select', {
featureId: allObj[i].id drawObj.changeMode('direct_select', {
}); featureId: allObj[i].id
});
}
} }
}} }}
> >

Loading…
Cancel
Save