We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to reproduce:
Editor goes into a weird state:
Uncaught TypeError: Cannot read property 'unshift' of undefined
from this line:
addLatLng: function (latlng) { if (this._drawing === L.Editable.FORWARD) this._drawnLatLngs.push(latlng); else this._drawnLatLngs.unshift(latlng); <----- this.feature._bounds.extend(latlng); this.addVertexMarker(latlng, this._drawnLatLngs); this.refresh(); },
Event log:
editable:vertex:mousedown editable:vertex:click editable:vertex:metakeyclick editable:drawing:cancel editable:drawing:end editable:drawing:start editable:vertex:clicked editable:drawing:move editable:drawing:mousedown editable:drawing:click Leaflet.Editable.js:917 Uncaught TypeError: Cannot read property 'unshift' of undefinedL.Editable.PathEditor.L.Editable.BaseEditor.extend.addLatLng @ Leaflet.Editable.js:917L.Editable.PathEditor.L.Editable.BaseEditor.extend.newPointBackward @ Leaflet.Editable.js:932L.Editable.PathEditor.L.Editable.BaseEditor.extend.processDrawingClick @ Leaflet.Editable.js:961L.Editable.BaseEditor.L.Class.extend.onDrawingClick @ Leaflet.Editable.js:690L.Editable.L.Evented.extend.onMouseup @ Leaflet.Editable.js:171o.Evented.o.Class.extend.fire @ leaflet.js:5o.Map.o.Evented.extend._fireDOMEvent @ leaflet.js:5o.Map.o.Evented.extend._handleDOMEvent @ leaflet.js:5h @ leaflet.js:7 editable:drawing:move
The text was updated successfully, but these errors were encountered:
37f410c
Sorry @hyperknot missed this issue :( Github notifications is a mess :/
Sorry, something went wrong.
@yohanboniface thanks, works perfectly!
No branches or pull requests
Steps to reproduce:
Editor goes into a weird state:
from this line:
Event log:
The text was updated successfully, but these errors were encountered: