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(Map): use same size calculation in updateSize and updateViewportSize_ #15269

Merged
merged 4 commits into from Oct 26, 2023

Conversation

simonseyock
Copy link
Member

Fixes: #15268

@github-actions
Copy link

📦 Preview the website for this branch here: https://deploy-preview-15269--ol-site.netlify.app/.

@simonseyock simonseyock force-pushed the fix-update-viewport-size branch 2 times, most recently from 240973c to 20121de Compare October 23, 2023 13:30
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.

Good simplification. Thanks, @simonseyock. I have added a suggestion for simpler wording that you may want to consider. Looks good otherwise.

src/ol/View.js Outdated Show resolved Hide resolved
@simonseyock
Copy link
Member Author

Just to clarify: This not only simplifies it, but also fixes a bug that was occurring in the removed code part.

@simonseyock
Copy link
Member Author

Also I updated the docs for calculateExtent with the same text.

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, @simonseyock

@ahocevar ahocevar merged commit 226f0cf into openlayers:main Oct 26, 2023
8 checks passed
@simonseyock simonseyock deleted the fix-update-viewport-size branch October 26, 2023 12:03
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.

default size for the fit function behaves unintuitively
2 participants