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

Fixed rendering issues with detailed polylines #18

Merged
merged 2 commits into from
Nov 22, 2020

Conversation

Sijmen
Copy link
Contributor

@Sijmen Sijmen commented Jun 12, 2018

Added the simplify step before offsetting the actual point. This reduces the number of points in the line and smooths it. The end result is unaffected in simple polylines and is significantly improved on detailed polylines.

This should fix issues as seen in #1

Sijmen added 2 commits June 12, 2018 15:38
Added the simplify step before offsetting the actual point. This reduces the number of points in the line and smooths it. The end result is unaffected in simple polylines and is significantly improved on detailed polylines.
Using the smoothing values of the options is a nicer solution than the hardcoded default value of 1. The option should always be available because its set by default in leaflet. If its not there, you definitely broke something.
@LekisS
Copy link

LekisS commented Jun 12, 2018

Works great on my end, thanks

@KirillMetrik
Copy link

@bbecquet could you please merge this? Would really like to reuse this fix as a part of PolylineOffset release.

@BenSuskins
Copy link

@bbecquet could you please merge this? Would be really great to have this

thiphariel added a commit to Latitude-Cartagene/Leaflet.PolylineOffset that referenced this pull request Jan 15, 2020
@bbecquet bbecquet merged commit b46386e into bbecquet:master Nov 22, 2020
@bbecquet
Copy link
Owner

Sorry I know it's a bit ridiculous to merge this PR sooo late… I haven't maitained this plugin at all for 3 years, and now I hope to find time to rewrite it from scratch, as I think there are fundamental design flaws that cause most of the problems.
But this fixes a lot of rendering issues, so it may be useful to some users in the meantime, even if they probably use their own fork.

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

Successfully merging this pull request may close these issues.

5 participants