Skip to content

Fix rendering of opaque layers with opacity != 1 #4939

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

Merged
merged 4 commits into from
Mar 1, 2016

Conversation

ahocevar
Copy link
Member

When a layer has an opacity set, clip rectangles have to be calculated even when the source has the opaque flag set. Otherwise lower resolution tiles will change the visual opacity of rendered tiles.

To avoid 1-pixel lines at clip extent boundaries, the clip rectangle coordinates are now calculated the same way as the tile insert points.

Fixes #4934.

@ahocevar ahocevar changed the title Improve rendering of opaque layers with opacity != 1 Fix rendering of opaque layers with opacity != 1 Feb 29, 2016
@fredj
Copy link
Member

fredj commented Mar 1, 2016

LGTM

ahocevar added a commit that referenced this pull request Mar 1, 2016
Fix rendering of opaque layers with opacity != 1
@ahocevar ahocevar merged commit fbb3ffc into openlayers:master Mar 1, 2016
ahocevar added a commit that referenced this pull request Mar 1, 2016
Fix rendering of opaque layers with opacity != 1
@ahocevar ahocevar deleted the clip-opacity branch August 22, 2023 06:54
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