fixed empty polyline drawing

This commit is contained in:
muerwre 2019-02-07 11:32:51 +07:00
parent a05ebaa4ad
commit 957ddebb67

View file

@ -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: () => {