Skip to content

Conversation

@ahocevar
Copy link
Member

@ahocevar ahocevar commented Aug 12, 2016

As part of the fix for layer clipping on HiDPI devices, this pull request also fixes the drawScale calculation. The drawScale has caused us to create ridiculously large canvases when rotating on HiDPI devices, so this pull request also fixes the performance problem reported in #5683.

Fixes #5716.
Fixes #5683.

@fredj
Copy link
Member

fredj commented Aug 17, 2016

Will this fixes the ipad issues related to the maximum canvas size?

@ahocevar
Copy link
Member Author

@fredj It will at least improve the situation there, because the canvas size during rotation will be much smaller after this change.

@bartvde
Copy link
Member

bartvde commented Aug 23, 2016

code LGTM

@ahocevar
Copy link
Member Author

Thanks for the review. I'm adding some tests now to make sure we don't get more regressions like this later on.

The goal of using a drawScale was to use the smallest possible canvas (i.e.
one that fits the tile pixel ratio instead of the view pixel ratio) when
composing rotated views. Instead, the drawScale caused a ridiculously
large canvas.
@ahocevar ahocevar force-pushed the fix-tilelayer-extent branch from aabe621 to d333df0 Compare August 23, 2016 09:50
@ahocevar ahocevar force-pushed the fix-tilelayer-extent branch from d333df0 to 208ea17 Compare August 23, 2016 10:01
@bartvde
Copy link
Member

bartvde commented Aug 23, 2016

LGTM thanks for adding all the tests

@ahocevar ahocevar merged commit 79ded2a into openlayers:master Aug 23, 2016
@ahocevar ahocevar deleted the fix-tilelayer-extent branch August 23, 2016 10:12
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.

Rotation of the view failed on HiDPI screens performance issue in the new version

3 participants