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

Polyline edit events? #1152

Closed
nhinze opened this issue Nov 16, 2012 · 1 comment
Closed

Polyline edit events? #1152

nhinze opened this issue Nov 16, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@nhinze
Copy link

nhinze commented Nov 16, 2012

Would it be possible to add events to an editable polyline? Right now there is only the 'edit' event. It would be nice that the returned events let us know if a point has been moved, removed or added and at what index.

Similar to what google maps api has:

  • google.maps.event.addListener(GPS_Line.getPath(), 'remove_at', process_remove_at);
  • google.maps.event.addListener(GPS_Line.getPath(), 'set_at', process_set_at);
  • google.maps.event.addListener(GPS_Line.getPath(), 'insert_at', process_insert_at);

I need such a feature to update an array that has point attributes corresponding to the points of the polyline. Right now, I compare the lat/lon of each point between the new polyline and the array until I find the location of edit.

If this can already be accomplished with LL, let me know.

Thanks,

Nick,

@jacobtoye
Copy link
Member

Moved to Leaflet/Leaflet.draw#74 as Leaflet.draw is now the home for the vector editing handlers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants