0

I am trying to offline my map using Mapbox and Xcode, however it seems to get stuck during the download process without any warning. I use this code to check what tile it's currently on:

- (void)tileCache:(RMTileCache *)tileCache didBackgroundCacheTile:(RMTile)tile withIndex:(int)tileIndex ofTotalTileCount:(int)totalTileCount
{
    NSLog(@"Caching Tile %i", tileIndex);
}

However the map always gets stuck caching tile 495 but never hits

- (void)tileCacheDidFinishBackgroundCache:(RMTileCache *)tileCache

or

- (void)tileCacheDidCancelBackgroundCache:(RMTileCache *)tileCache

I had this issue before and fixed it by creating a new project on the Mapbox website. I don't want to do this again as I have layers etc and this problem seems to occur if I don't use the map for a little while. Has anyone else had this issue or can anyone offer any advice as to how I can debug / counter this?

Thanks

4

2 回答 2

1

@incanus77这里 :-)

这里有一些特定于您的设置的东西;更高的瓷砖数量应该是可能的。我建议调试单步调试代码直到该委托回调,以查看最后一个成功的图块上真正发生了什么。

于 2014-02-27T22:35:38.373 回答
0

我下载并缓存 MapBox 切片,在 495 切片上我从来没有遇到过问题。但是,我不使用 MapBox SDK 进行下载,所以我的情况与你的不同。我已经毫无问题地下载了 10,000 个标题。

这是您应该向谁询问有关此问题的问题https://twitter.com/incanus77。他应该能够帮助你。

于 2014-02-26T20:52:13.630 回答