Last active
August 29, 2015 13:57
-
-
Save mousebird/9634645 to your computer and use it in GitHub Desktop.
This file contains 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
// This knows how read and set up vector tiles | |
MaplyVectorTiles *vecTiles = | |
[[MaplyVectorTiles alloc] initWithDatabase:filePath viewC:baseViewC]; | |
// This knows how to page data in | |
MaplyQuadPagingLayer *layer = | |
[[MaplyQuadPagingLayer alloc] | |
initWithCoordSystem:[[MaplySphericalMercator alloc] initWebStandard] | |
delegate:vecTiles]; | |
// We can use as many as 8 threads at once | |
layer.numSimultaneousFetches = 8; | |
// Add that sucker to the map and go! | |
[baseViewC addLayer:layer]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you show example how to use Vector or how must look JSON (for now I have map in ai format)