RMMapView缓存

时间:2015-04-05 13:05:34

标签: ios mapbox

缺乏有关在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;

1 个答案:

答案 0 :(得分:0)

是的,这是规范示例项目:https://github.com/mapbox/mapbox-ios-sdk-offline

来源:我写了。