缺乏有关在iOS上实现MapBox缓存的信息。任何人都可以提供使用[RMTileCache beginBackgroundCacheForTileSource ..]然后将这些缓存数据加载到地图的好例子吗?
我正在使用:
RMSphericalTrapezium rect = [mapView latitudeLongitudeBoundingBox];
mapView.tileCache.backgroundCacheDelegate = self;
[mapView.tileCache beginBackgroundCacheForTileSource:mapView.tileSource
southWest:rect.southWest
northEast:rect.northEast
minZoom:8.0
maxZoom:19.0];
mapView.tileCache = tileCache;