Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.96k stars 992 forks source link

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

Open shivamsharmanps opened 2 years ago

shivamsharmanps commented 2 years ago

How to reproduce

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

It should remove last vertex

arnd-schmidt commented 2 years ago

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