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

Fixes to export examples #13947

Merged
merged 2 commits into from
Aug 8, 2022
Merged

Fixes to export examples #13947

merged 2 commits into from
Aug 8, 2022

Conversation

mike-000
Copy link
Contributor

@mike-000 mike-000 commented Aug 8, 2022

In the map export example the background should be set after applying the transform. This would be necessary if the layer had opacity and was above another layer (especially with a rotated view), and if the browser zoom is less than 100%:

image
(transparency appears black)

In both examples if the generated canvas is required elsewhere, in addition to resetting the globalAlpha the transform should also be reset.

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

📦 Preview the examples and docs from this branch here: https://deploy-preview-13947--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 3ce1b88 into openlayers:main Aug 8, 2022
@mike-000 mike-000 deleted the exports branch August 8, 2022 12: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
Development

Successfully merging this pull request may close these issues.

2 participants