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

Clear size when target is detached from map #14622

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

ahocevar
Copy link
Member

This pull request fixes a regression caused by #14305: When detaching a map from a target using map.setTarget(null) and re-attaching it later using map.setTarget(target), no map will be visible. The reason is that when no target is attached, the logic expects the map's size to be unset.

@github-actions
Copy link

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

@ahocevar
Copy link
Member Author

.only removed, tests pass now.

@ahocevar ahocevar merged commit 309ca07 into openlayers:main Mar 30, 2023
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.

2 participants