|
|
|
@ -348,7 +348,15 @@ export const LaancDrawControl = props => {
|
|
|
|
|
// props.handlerAddChange('isAddable', false);
|
|
|
|
|
props.handlerAddChange('overAdd', false); |
|
|
|
|
handlerRemoveGroupMarker(id); |
|
|
|
|
|
|
|
|
|
const remainObj = drawObj |
|
|
|
|
.getAll() |
|
|
|
|
.features.filter(o => o.properties.id !== 'BUFFER' && o.id !== id); |
|
|
|
|
if (remainObj.length === 0) { |
|
|
|
|
props.handlerSaveCheck(false); |
|
|
|
|
} else { |
|
|
|
|
props.handlerSaveCheck(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
drawObj.delete(id); |
|
|
|
|
|
|
|
|
|