Advertisement
Guest User

BackgroundCachingCode(travelonline)

a guest
Jan 29th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     [[RMConfiguration configuration] setAccessToken:kMapAccessToken];
  2.     RMMapboxSource *tileSource = [[RMMapboxSource alloc] initWithMapID:kMapID];
  3.     [tileSource setCacheable:YES];
  4.     RMTileCache* cache = [[RMTileCache alloc] initWithExpiryPeriod:0];
  5.    
  6.     [cache beginBackgroundCacheForTileSource:tileSource southWest:CLLocationCoordinate2DMake(52.533827, 13.437938) northEast:CLLocationCoordinate2DMake(52.533828, 13.437939) minZoom:tileSource.minZoom maxZoom:tileSource.maxZoom];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement