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 issues with scaling when mapScale != guiScale. #273

Open
wants to merge 2 commits into
base: 1.20
Choose a base branch
from

Conversation

murphy-slaw
Copy link

There were a few places in the code where the ratio guiScale/mapScale was used when mapScale/guiScale was the correct value. This caused a lot of weird scaling/offset issues if the mapScale configuration value was other than 0 (match guiScale) or manually set to the value of guiScale. This moves that calculation to one place and ensures that the correct ratio is used everywhere.

I think this is doing the right thing to the values shown in the scale ruler but I would appreciate a second look.

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.

1 participant