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

Check for graticule resolution change and fix unrotated size #13415

Merged
merged 1 commit into from Feb 24, 2022

Conversation

mike-000
Copy link
Contributor

Fixes #13400
Fixes #13413

Calculating the "unrotated" width and height from the frame size and resolution is simpler than trigonometry and avoids random values when results used in division are close to zero.

Also check for changes to resolution as well as extent when the rendered extent fits inside the frame to ensure the interval is updated when zooming out.

Calculate unrotated width and height from frame size and resolution
Check for changes in resolution as well as extent when rendered extent fits inside frame
@github-actions
Copy link

📦 Preview the examples and docs from this branch here: https://deploy-preview-13415--ol-site.netlify.app/.

Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

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

Thanks, @mike-000

@ahocevar ahocevar merged commit a1aff21 into openlayers:main Feb 24, 2022
@mike-000 mike-000 deleted the graticule branch March 22, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants