Skip to content

Instantly share code, notes, and snippets.

@mousebird
Last active August 29, 2015 13:57
Show Gist options
  • Save mousebird/9634645 to your computer and use it in GitHub Desktop.
Save mousebird/9634645 to your computer and use it in GitHub Desktop.
// 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];
@AndrewScherba
Copy link

Can you show example how to use Vector or how must look JSON (for now I have map in ai format)

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