mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
added ability to clear router/poly
This commit is contained in:
parent
f2c9cc4abc
commit
7fc53444a8
4 changed files with 23 additions and 3 deletions
|
@ -99,6 +99,14 @@ export class Poly {
|
|||
];
|
||||
|
||||
this.poly.setLatLngs(summary);
|
||||
this.poly.enableEdit();
|
||||
this.poly.editor.reset();
|
||||
this.updateMarks();
|
||||
};
|
||||
|
||||
clearAll = () => {
|
||||
this.poly.setLatLngs([]);
|
||||
this.poly.disableEdit();
|
||||
this.updateMarks();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue