Leaflet / Leaflet.Editable

Make geometries editable in Leaflet.
http://leaflet.github.io/Leaflet.Editable/doc/api.html
553 stars 198 forks source link

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

Open Cyrille37 opened 1 year ago

Cyrille37 commented 1 year ago

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 :

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 :wink: