enabling / disabling editor from url

This commit is contained in:
muerwre 2018-08-29 14:43:21 +07:00
parent b35a063cd7
commit e3e209ff65
5 changed files with 70 additions and 38 deletions

View file

@ -181,5 +181,13 @@ export class Editor {
}));
}
this.map.map.fitBounds(this.poly.poly.getBounds());
};
startEditing = () => {
this.poly.poly.enableEdit();
};
stopEditing = () => {
this.poly.poly.disableEdit();
}
}