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

Polylines appear "broken" #45

Open
Tyler-Keith-Thompson opened this issue Aug 9, 2020 · 2 comments
Open

Polylines appear "broken" #45

Tyler-Keith-Thompson opened this issue Aug 9, 2020 · 2 comments

Comments

@Tyler-Keith-Thompson
Copy link

As seen in the attached image polylines are not really straight. I've just got black lines with a stroke of 0.3 (have also tried stroke width of 1 and 3). In all cases lines appear broken. It's worth mentioning I have several hundred lines shown, but it's still unclear to my why they're not just straight.

Haven't done anything special, no custom tile server. Map is saved as a png with default options, but even setting the compression level to 0 yields a similar result

Running on macOS catalina
node v14.4.0
staticmaps ^1.4.1

Screen Shot 2020-08-08 at 6 52 30 PM

@StephanGeorg
Copy link
Owner

Hi @Tyler-Keith-Thompson

Thanks for the hint.

The effect you're describing is called Anti-Aliasing. I need to investigate if it could be easily implemented into the used components.

@StephanGeorg
Copy link
Owner

lovell/sharp#1401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants