-
Notifications
You must be signed in to change notification settings - Fork 11
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
Drawing over start of line deletes part of the line #2
Comments
Thanks for trying using it ! I've tried some optimization (stack event to process one by one, cache some values in variables) but bug seems to be style there. I think this issue is related to Turfjs/turf#1393 when 2 events are fired on the same latlng |
Difference is for erasing... The turfjs lib has issue for union too: Turfjs/turf#1209 (comment) |
I reproduce the bug : https://www.youtube.com/watch?v=4orbvl_xyg0&feature=youtu.be The 2 functions uses 'martinez-polygon-clipping' : https://github.com/w8r/martinez |
Hi @tcoupin |
I'm guessing that @tcoupin wants to wait for the official v7 release of turfjs, which is built with a martinez version that fixes these bugs. If you really need these bugs gone and don't care about potential other bugs, you can easily build this yourself with the v7-alpha by replacing the _draw function in PaintPolygon,js with:
replacing the myTurf.js with:
and adding
to your package.json |
Hello, |
This is an awesome plugin but there is one issue thats preventing me from using it.
When drawing it seems if you draw over that start of the line it deletes part of the line, I have linked a screen recording to help explain.
Video: https://youtu.be/AiDOzJPEdRs
Unrelated but after drawing for about 20 seconds chrome bug out and the page has to be reloaded.
Regards
Jack
The text was updated successfully, but these errors were encountered: