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
If you double click the second vertex when creating a polygon, it commits the polygon even though it is invalid.
A seemingly simple fix is to change:
onVertexMarkerClick: function (e) { ... } else if (index >= 1 && index === e.vertex.getLastIndex() && this.drawing === L.Editable.FORWARD) { this.commitDrawing();
to
onVertexMarkerClick: function (e) { } else if (index >= 1 && index === e.vertex.getLastIndex() && this.drawing === L.Editable.FORWARD && this._drawnLatLngs.length >= this.MIN_VERTEX) { this.commitDrawing(); 111
The text was updated successfully, but these errors were encountered:
Do not finish polygon if not enough vertices (cf #18)
02c662b
5355447
Thanks for the report! I wonder how I've let this bug around till now! ;)
Sorry, something went wrong.
Thank you for the prompt fix!
No branches or pull requests
If you double click the second vertex when creating a polygon, it commits the polygon even though it is invalid.
A seemingly simple fix is to change:
to
The text was updated successfully, but these errors were encountered: