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

Use tile image dimensions in rendering #5999

Closed

Conversation

thomasmoelhave
Copy link
Contributor

Some servers sometimes return tiles that do not match the tile size
specification (e.g. it can return a 1x1 blank tile where there's no
data). This can cause an out-of-bound error in drawImage - at least in ie 10+11.

See the discussion in #5936, this patch stems from the comment by @tschaub.

Some servers sometimes return tiles that do not match the tile size
specification (e.g. it can return a 1x1 blank tile where there's no
data). This can cause an out-of-bound error in drawImage.
@thomasmoelhave
Copy link
Contributor Author

I am not sure why the test fails - it does happen on my box and on Travis so probably something to look into.

@ahocevar
Copy link
Member

You need to account for gutter and different device pixel ratio and source pixel ratio combinations.

@hanny2
Copy link

hanny2 commented Oct 25, 2016

Since the dom renderer is removed in 3.19.0 (which isn't a bad thing, because canvas fells better performing and also the rendering when zooming seems a lot better), it would be great to have this one fixed for IE 10 + 11 and Edge.

@thomasmoelhave
Copy link
Contributor Author

Deprecated by #6082.

@thomasmoelhave thomasmoelhave deleted the drawImage-image-size branch December 6, 2016 08:02
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.

None yet

3 participants