Skip to content

Instantly share code, notes, and snippets.

@mousebird
Created July 25, 2013 23:58
Show Gist options
  • Save mousebird/6084866 to your computer and use it in GitHub Desktop.
Save mousebird/6084866 to your computer and use it in GitHub Desktop.
MaplyPlateCarree *coordSys = [[MaplyPlateCarree alloc] initFullCoverage];
MaplyWMSTileSource *tileSource = [[MaplyWMSTileSource alloc] initWithBaseURL:@"http://raster.nationalmap.gov/ArcGIS/services/Orthoimagery/USGS_EDC_Ortho_NAIP/ImageServer/WMSServer" layers:@[@"0"] coordSys:coordSys minZoom:0 maxZoom:16 tileSize:256];
tileSource.transparent = true;
MaplyQuadEarthTilesLayer *layer = [[MaplyQuadEarthTilesLayer alloc] initWithCoordSystem:coordSys tileSource:tileSource];
layer.handleEdges = true;
layer.cacheDir = thisCacheDir;
[baseViewC addLayer:layer];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment