Domanda

I have a large image managed with CATiledLayer (like the Large Image Downsizing iOS sample code).

I had a drawing view (UIView overrided with drawing methods) on it but when I zoom a lot, I get the following message and my view disappeared..

-[<CALayer: 0xb253aa0> display]: Ignoring bogus layer size (25504.578125, 15940.361328)

Is there a way to avoid this ?

È stato utile?

Soluzione

Sounds like the levelsOfDetail and levelsOfDetailBias you are setting are allowing for more zoom than the tiled layer should allow given the max layer size allowable for the layer. Try changing those to lessen how much the user can zoom.

Here is a great article explaining some of the undocumented behavior of CATiledLayer.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top