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

Fix fire vertex removed event #1028

Merged
merged 5 commits into from Dec 18, 2021
Merged

Fix fire vertex removed event #1028

merged 5 commits into from Dec 18, 2021

Conversation

lmachens
Copy link
Contributor

@lmachens lmachens commented Nov 7, 2021

In draw polyline mode, the pm:vertexadded event is fired like expected.
Clicking "Remove last vertex" doesn't fire a pm:vertexremoved event.

image

This pull request makes sure to fire this event.

@Falke-Design
Copy link
Collaborator

A test would be good, do you think you can do this?

@Falke-Design Falke-Design changed the base branch from master to develop November 13, 2021 13:43
@lmachens
Copy link
Contributor Author

Sorry, I was busy and just read your message. Your test looks good to me 👍

@codeofsumit codeofsumit merged commit 96934aa into geoman-io:develop Dec 18, 2021
@lmachens lmachens deleted the vertex-removed-event branch December 19, 2021 11:20
BaharWeb pushed a commit to BaharWeb/leaflet-geoman that referenced this pull request May 13, 2022
* Fix fire vertex removed event

* Add test

* Move findDeepMarkerIndex into Utils and add it to the removeVertrex evt

* Fix this.L.PM

Co-authored-by: Falke Design <design.falke@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants