bugfix
This commit is contained in:
parent
693b32c0ee
commit
c916a67ae0
1 changed files with 1 additions and 1 deletions
|
@ -1262,7 +1262,7 @@ L.U.Editable = L.Editable.extend({
|
||||||
content = L._('Click to start drawing a line');
|
content = L._('Click to start drawing a line');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var tmpLatLngs = this.editor._drawnLatLngs.slice();
|
var tmpLatLngs = e.layer.editor._drawnLatLngs.slice();
|
||||||
tmpLatLngs.push(e.latlng);
|
tmpLatLngs.push(e.latlng);
|
||||||
var readableDistance = e.layer.getMeasure(tmpLatLngs);
|
var readableDistance = e.layer.getMeasure(tmpLatLngs);
|
||||||
if (e.layer.editor._drawnLatLngs.length < e.layer.editor.MIN_VERTEX) {
|
if (e.layer.editor._drawnLatLngs.length < e.layer.editor.MIN_VERTEX) {
|
||||||
|
|
Loading…
Reference in a new issue