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

[Tips] Creating & Editing does not fire same event (event for Saving changes) #214

Open
Cyrille37 opened this issue Aug 20, 2023 · 0 comments

Comments

@Cyrille37
Copy link

Cyrille37 commented Aug 20, 2023

Hello

At first, a big Thank to you for sharing this great work <3.

Here is not a bug, but a tips for helping people at beginning :

  • At the end of creating a new Shape (Polygon) editable:drawing:end is fired ;
  • At the end of modifying a Shape (Polygon) editable:drawing:end is not fired but editable:vertex:dragend is.
map.editTools
  .on('editable:drawing:end', saveChanges)
  .on('editable:vertex:dragend', saveChanges)
  ;
function saveChanges() { ... }

is this the right way to do it?

Thanks & Cheers

PS: another tips here : #213 😉

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

1 participant