Skip to content

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

@Cyrille37

Description

@Cyrille37

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 😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions