Created
August 22, 2016 17:55
-
-
Save mousebird/f5e953f554d6e74d3f17dc85e9896d7a 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
// 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