-
Notifications
You must be signed in to change notification settings - Fork 68
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
Editing Polygons with Leaflet Draw #22
Labels
Comments
I have the same problem:
Results in:
It happens in this block:
I use leaflet 0.7.3, draw 0.2.3 and the latest master file from snap. Any ideas whats wrong? |
I'm sorry I can't spend time to help you on this... (I don't work with these tools anymore) |
This is a Leaflet.draw bug, the issue and workaround can be found here: |
I think #30 solve this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to edit polygons with Leaflet Draw with snapping enabled?
I have it working when creating new polygons. I have tried this code:
Which doesn't work because there is no fill set. When I replace the
polylineSnap
withpolygonSnap
it tells me it is not a function.This is how I enabled snapping for creating a polygon:
That works for creating but when I use the same method for editing it has no effect.
The text was updated successfully, but these errors were encountered: