Created
April 8, 2014 03:56
-
-
Save mousebird/10089064 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you please share the url format you used in the above example.