缺乏关于在iOS上实现MapBox缓存的信息。有人能提供使用RMTileCache beginBackgroundCacheForTileSource的好例子吗?然后将这些缓存的数据加载到map?
我使用的是:
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;发布于 2015-04-25 03:15:00
是的,这是一个规范的样例项目:https://github.com/mapbox/mapbox-ios-sdk-offline
来源:我写的。
https://stackoverflow.com/questions/29457582
复制相似问题