iphone - Zooming with a CATiledLayer in a UIScrollView -
I am implementing map applications similar to map applications and I'm trying to add zooming. I have many level of detail, e.g. 6, and I want to use the appropriate level for the current zoom scale. I am using CATiledLayer in the UIScrollView So far, I can set the minimum / maximum zoom in the UIScrollView, the drawer is called and I pull the appropriate tile, but it only uses my first map level. Now I want to set levelOfDetail in CATiledLayer so that I can use the appropriate expansion level.
My question is, how do I know which level should I attract? The tile size of the CATiledLayer is always the same, and the same is the clipping text. I can see that when the drawer is asked for a new level of detail, but how to tell it at that level.
Set the level of play and bias up front Then when asked to draw it, look at the frame to see the zoom in from the scroll view, and compare its range. It should give you the necessary information to determine what you attract besides the clip path To see the limit of "where" CATiledLayer is working on the next.
Comments
Post a Comment