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

Fix DPI scaling on 'offset' parameter for points. #2186

Merged
merged 6 commits into from
Sep 20, 2020

Conversation

matteblair
Copy link
Member

Resolves #2177

The change that actually addresses this issue is 6a6a8da, the rest is just cleanup and convenience functionality that happened while I was debugging.

Copy link
Member

@tallytalwar tallytalwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @matteblair . LGTM

@matteblair matteblair merged commit 15adaf4 into master Sep 20, 2020
@matteblair matteblair deleted the offset-dpi-scaling branch September 20, 2020 19:07
@westnordost
Copy link
Contributor

Nice!

So what was the bug? Offset was assumed to be pixel scale ==1?

@matteblair
Copy link
Member Author

Yeah essentially. Labels drawn using the "Points" style were missing the step where pixel scale is applied to "offset". The "Text" style was applying pixel scale correctly, so the problem became very clear when multiple "Points" and "Text" meshes were drawn together.

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.

Offset of marker behaves differently than offset of element in layer
3 participants