mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed empty polyline drawing
This commit is contained in:
parent
a05ebaa4ad
commit
957ddebb67
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ L.Polyline.polylineEditor = L.Polyline.extend({
|
|||
|
||||
this._map.off('click', this._addPointForward);
|
||||
this._map.off('click', this._addFirstPoint);
|
||||
|
||||
if (this._markers.length <= 1) this.editor.clear();
|
||||
},
|
||||
|
||||
reset: () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue