Skip to content

Instantly share code, notes, and snippets.

View denverpierce's full-sized avatar

dpierce denverpierce

View GitHub Profile
@denverpierce
denverpierce / culling.js
Created May 16, 2017 22:08
Gist for testing Ceisum Label/Billboard camera issues
var viewer = new Cesium.Viewer('cesiumContainer', {
timeline : false,
animation : false
});
viewer.scene.minimumDisableDepthTestDistance = Number.POSITIVE_INFINITY;
var dataSource = Cesium.GeoJsonDataSource.load('../../SampleData/simplestyles.geojson');
viewer.dataSources.add(dataSource);
viewer.camera.setView({
@denverpierce
denverpierce / fastPath.js
Created September 27, 2016 14:54
Cesium Sandcastle Modified Path Example
var czml = [{
"id" : "document",
"name" : "CZML Path",
"version" : "1.0",
"clock": {
"interval": "2012-08-04T10:00:00Z/2012-08-04T15:00:00Z",
"currentTime": "2012-08-04T10:00:00Z",
"multiplier": 10
}
}, {
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',