JCTiledScrollView icon indicating copy to clipboard operation
JCTiledScrollView copied to clipboard

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

Open bibinjacobpulickal opened this issue 8 years ago • 1 comments

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 avatar Jul 31 '17 07:07 bibinjacobpulickal

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

jessedc avatar Oct 14 '17 06:10 jessedc