Skip to content

Resize the canvas when the tile size changes #3223

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 1 commit into from
Feb 11, 2015
Merged

Resize the canvas when the tile size changes #3223

merged 1 commit into from
Feb 11, 2015

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Feb 10, 2015

When prepareFrame is called for a resolution that uses a different tile size than the previous call, the canvas needs to be resized so it remains an integer multiple of the tile size.

Thanks @bill-chadwick for digging in and identifying the correct solution. This is a reworked version of the commits in #3212.

Fixes #2314.

@fredj
Copy link
Member

fredj commented Feb 11, 2015

LGTM

tschaub added a commit that referenced this pull request Feb 11, 2015
Resize the canvas when the tile size changes.
@tschaub tschaub merged commit 9cea85b into openlayers:master Feb 11, 2015
@tschaub tschaub deleted the tilesize-change branch February 11, 2015 17:18
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.

Uncaught RangeError: Invalid array length
3 participants