Skip to content
New issue

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

Method for delete last vertex of Polygon is not working #1033

Open
4 tasks
shivamsharmanps opened this issue Dec 21, 2021 · 1 comment
Open
4 tasks

Method for delete last vertex of Polygon is not working #1033

shivamsharmanps opened this issue Dec 21, 2021 · 1 comment

Comments

@shivamsharmanps
Copy link

  • I'm reporting a bug, asking for help
  • I've looked at the documentation to make sure the behaviour is documented and expected
  • I'm sure this is a Leaflet Draw code issue, not an issue with my own code nor with the framework, I'm using (Cordova, Ionic, Angular, React…)
  • I've searched through the issues to make sure it's not yet reported

How to reproduce

  • Leaflet version I'm using: 1.7.1
  • Leaflet Draw version I'm using: 1.0.4
  • Browser (with version) I'm using: Chrome
  • OS/Platform (with version) I'm using: Window
  • step 1: Drawn a polygon connected
  • step 2: polygon disabled then called deleteLastVertex to clear but it did not work

What behaviour I'm expecting and which behaviour I'm seeing

It should remove last vertex

@arnd-schmidt
Copy link

afaik, deleteLastVertex() is intended to be used on a Polyline (while you draw a new Polygon) and not on a "finished" connected Polygon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants