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

Update shape feature #31

Closed
ouhouhsami opened this issue Oct 12, 2012 · 2 comments
Closed

Update shape feature #31

ouhouhsami opened this issue Oct 12, 2012 · 2 comments

Comments

@ouhouhsami
Copy link

Hello,

Really great draw functionality support !

BTW, what about an 'update shape support' ?
It would be great to have a way for user to update an existing shape ? We could have a kind of 'Selector tool' which could then udpate shapes inside a LayerGroup (drawnItems layer group in library provided example)

May be this could be done in 3 steps process :

  1. the user click on a shape
  2. the shape shows 'anchor'
  3. the use drag'n'drop anchors to update the shape

Regards,

@jacobtoye
Copy link
Member

Hi @ouhouhsami I like your selector idea. The trick would be to make sure it is obvious that this is what the tool was, not just another drawing tool. When I get some free time I might try having a play.

In the mean time the Leaflet core provides the ability to edit polygons and polylines. See: https://github.com/CloudMade/Leaflet/blob/master/debug/vector/editable.html.

We plan on moving the editable component from Leaflet core into this plugin some time in the future. With this we would also add support for editing other shapes.

Cheers :)

@jacobtoye
Copy link
Member

Update supported in new version.

ewelinaBS pushed a commit to dronedeploy/Leaflet.draw that referenced this issue Jan 12, 2024
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

2 participants