Open aleksandr-vin opened 9 years ago
It seems some of the tiles you are trying to download failed. Try to use the backgroundCacheDelegate
method - (void)tileCache:(RMTileCache *)tileCache didReceiveError:(NSError *)error whenCachingTile:(RMTile)tile
and monitor that/set a breakpoint.
Yes, there are some calls of this delegate. But what should I do to recover these erroneous tiles?
I think retrying tiles is not supported in this library, you probably need to handle the errors yourselves. Maybe make a list of the erroneous tiles from that delegate method and retry them after? Or if the reason of the tiles failing is clear, fix that.
I set up mapView and download tiles as in the example https://github.com/mapbox/mapbox-ios-sdk-offline
then I download tiles in cache:
Then I stop my App, turn Airplane mode and run my App again. The result is that not all the tiles are shown on map, different tiles missing in different zoom-s.
I use a 1.6.0 version with #581 fix cherry-picked.