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

Custom zoom steps. Render new tiles at 4x. ie., Split each tile to 16 tiles in new layer. #35

Open
bibinjacobpulickal opened this issue Jul 31, 2017 · 1 comment

Comments

@bibinjacobpulickal
Copy link

bibinjacobpulickal commented Jul 31, 2017

I have tiled images at zoom levels 2.5x, 10x and 40x corresponding levels have 4, 64 and 256 number of tiles. Is there a way I can render these tiled images flawlessly?
I tried quite a number of methods. Here, each tile is split into 4 tiles in the next zoom level. But, my requirement is to get 16 tiles for each tile in previous level.

@bibinjacobpulickal bibinjacobpulickal changed the title Render new tiles at 4x. ie., Split each tile to 16 tiles in new layer. Custom zoom steps. Render new tiles at 4x. ie., Split each tile to 16 tiles in new layer. Aug 9, 2017
@jessedc
Copy link
Owner

jessedc commented Oct 14, 2017

I think I'm right in saying that scales 2.5/10/40 won't tile cleanly.

The underlying CATiledLayer will call back looking for tiles at scales that are a multiple of the screen scale and the scroll view's zoom. This correspond to scales 3, 6, 12, 24 on a @3x device or 2, 4, 8, 16 on a @2x device.

For a perfect fit it might be worth taking the most detailed set of tiles you've got and working out a way to stitch them together to create the exponential size changes you'd need.

I hope that helps

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

No branches or pull requests

2 participants