Skip to content

Instantly share code, notes, and snippets.

@mousebird
Created April 8, 2014 03:56
Show Gist options
  • Save mousebird/10089064 to your computer and use it in GitHub Desktop.
Save mousebird/10089064 to your computer and use it in GitHub Desktop.
NSString *tileCacheDir = [NSString stringWithFormat:@"%@/%@",self.home.appCacheDir,cacheName];
[MaplyVectorTiles StartRemoteVectorTiles:tileURL cacheDir:tileCacheDir viewC:self.home.baseViewC block:
^(MaplyVectorTiles *vecTiles)
{
if (vecTiles)
{
MaplyQuadPagingLayer *layer = [[MaplyQuadPagingLayer alloc]
initWithCoordSystem:[[MaplySphericalMercator alloc] initWebStandard]
delegate:vecTiles];
layer.numSimultaneousFetches = 8;
[baseViewC addLayer:layer];
} else
NSLog(@"Failed to start vector tiles layer at: %@",vecOvl.url);
}];
@haidershahzad
Copy link

can you please share the url format you used in the above example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment