-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix offset behavior at low zoom levels #1
Comments
Actually it can happen at all zoom levels: See a similar bug that was fixed on Leaflet.PolylineDecorator: bbecquet/Leaflet.PolylineDecorator#20 |
Using a different intersection method helps a little bit.
|
Hey @obi068, I've run into this issue as well. I tried to use your code snippet, but it seems I need to do a couple more changes to the files besides the pieces of code you provided. Do you mind including the entire leaflet.polylineoffset.js file? Update: |
HI, Of course. You are right there are some other changes as well. br gerhard On Tue, Nov 10, 2015 at 8:37 AM, Bart Waardenburg [email protected]
|
* Implemented (part of) the fix as @obi068 suggested * Fixed bugs introduce in commit 422b577; Initial initial PR#13 created by @BartWaardenburg should be re-reviewed such that it can be merged in Leaflet.PolylineOffset code
Hi, I'm still experiencing this bug at zoom levels < 17 code:
Happens when using L.GeoJSON as well. I've reduced the coordinates collection using Douglas-Peucker's algorithm, but the problem still persists (to a lesser degree). Any idea for a workaround? |
Ok, I managed to patch this with the pull request content and the snippet from @obi068 (thanks a lot). |
Having the latest version (1.1.1) and this is still an issue for me. |
@creolis check my last pull request, you may find it useful |
When zooming-out, the offset lines get messed up, with bad angles and overlapping segments.
The text was updated successfully, but these errors were encountered: