mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
enabling / disabling editor from url
This commit is contained in:
parent
b35a063cd7
commit
e3e209ff65
5 changed files with 70 additions and 38 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue