Created
April 12, 2016 16:40
-
-
Save denverpierce/72179dce5bbfd850df3c356f9df07ba6 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
var viewer = new Cesium.Viewer('cesiumContainer', { | |
baseLayerPicker : false | |
}); | |
var usgs = new Cesium.ImageryLayer(new Cesium.WebMapTileServiceImageryProvider({ | |
url : 'http://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS', | |
layer : 'USGSShadedReliefOnly', | |
style : 'default', | |
format : 'image/jpeg', | |
tileMatrixSetID : 'default028mm', | |
maximumLevel : 19, | |
credit : new Cesium.Credit('U. S. Geological Survey') | |
})); | |
usgs.imageryProvider.readyPromise.then(function(){ | |
viewer.imageryLayers.add(usgs); | |
toggle(); | |
}); | |
function toggle() { | |
setTimeout(function () { | |
usgs.show = !usgs.show; | |
toggle(); | |
}, 500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment