Skip to content

Instantly share code, notes, and snippets.

@mousebird
Created August 22, 2016 17:55
Show Gist options
  • Save mousebird/f5e953f554d6e74d3f17dc85e9896d7a to your computer and use it in GitHub Desktop.
Save mousebird/f5e953f554d6e74d3f17dc85e9896d7a to your computer and use it in GitHub Desktop.
// Set up a cache directory
String cacheDirName = "stamen_watercolor";
File cacheDir = new File(getActivity().getCacheDir(), cacheDirName);
cacheDir.mkdir();
// Set up the a remote tile source and point it at Stamen Watercolor
RemoteTileSource remoteTileSource = new RemoteTileSource(new RemoteTileInfo("http://tile.stamen.com/watercolor/", "png", 0, 18));
remoteTileSource.setCacheDir(cacheDir);
QuadImageTileLayer baseLayer = new QuadImageTileLayer(baseController, new SphericalMercatorCoordSystem(), remoteTileSource);
// Add to the GlobeController
globeVC.addLayer(setupImageLayer(globeVC));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment