Created
March 28, 2017 19:26
-
-
Save anonymous/44bf911c2d312aee84446805a33d08c0 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
<style> | |
@import url(../templates/bucket.css); | |
</style> | |
<div id="cesiumContainer" class="fullSize"></div> | |
<div id="loadingOverlay"><h1>Loading...</h1></div> | |
<div id="toolbar"></div> |
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 czml = [ | |
{ | |
"id":"document", | |
"version":"1.0", | |
"clock":{ | |
"interval":"2016-09-01T00:00:00Z/2016-09-01T23:59:59.99Z", | |
"currentTime":"2016-09-01T12:00:00Z", | |
"multiplier":60, | |
"range":"LOOP_STOP" | |
} | |
}, | |
{ | |
"id":"Test Object", | |
"availability":"2016-09-01T00:00:00Z/2016-09-02T00:00:00Z", | |
"name":"Test Object", | |
"label":{ | |
"show":true, | |
"text":"Test Object", | |
"font":"bold 32px \"Droid Sans\",sans-serif", | |
"style":"FILL_AND_OUTLINE", | |
"scale":0.5, | |
"pixelOffset":{ | |
"cartesian2":[ | |
5,0 | |
] | |
}, | |
"horizontalOrigin":"LEFT", | |
"verticalOrigin":"CENTER", | |
"fillColor":{ | |
"rgba":[ | |
255,255,0,255 | |
] | |
}, | |
"outlineColor":{ | |
"rgba":[ | |
0,0,0,255 | |
] | |
}, | |
"outlineWidth":2.4 | |
}, | |
"path":{ | |
"show":true, | |
"width":5, | |
"resolution":300, | |
"leadTime":172800, | |
"trailTime":172800, | |
"material":{ | |
"polylineDash" : { | |
"color" : { | |
"rgba" : [255, 255, 0, 255] | |
}, | |
"dashLength": 10.0 | |
} | |
} | |
}, | |
"point":{ | |
"pixelSize":14, | |
"color":{ | |
"rgba":[ | |
255,255,0,255 | |
] | |
} | |
}, | |
"jhfkjsd":{ | |
"dimensions":{ | |
"epoch":"2016-09-01T00:00:00Z", | |
"cartesian":[ | |
0,279.0,632.0,17831.0, | |
86400,283.0,653.0,21218.0 | |
] | |
}, | |
"material":{ | |
"grid":{ | |
"color":{ | |
"rgba":[ | |
255,255,0,255 | |
] | |
}, | |
"lineCount":{ | |
"cartesian2":[ | |
12,12 | |
] | |
} | |
} | |
} | |
}, | |
"position":{ | |
"interpolationAlgorithm":"LAGRANGE", | |
"interpolationDegree":5, | |
"epoch":"2016-09-01T00:00:00Z", | |
"cartesian":[ | |
0,41693056.0,-224455.0,-6354563.0, | |
8640,42169152.0,-764133.0,-615413.0, | |
17280,41814675.0,-1393089.0,5359758.0, | |
25920,41119469.0,-1258304.0,9278534.0, | |
34560,41040625.0,-560533.0,9635776.0, | |
43200,41677063.0,-270318.0,6291754.0, | |
51840,42135688.0,-779539.0,529501.0, | |
60480,41775147.0,-1360532.0,-5436236.0, | |
69120,41098752.0,-1184293.0,-9312281.0, | |
77760,41054134.0,-480334.0,-9610528.0, | |
86400,41713762.0,-222890.0,-6218657.0 | |
] | |
} | |
} | |
]; | |
var viewer = new Cesium.Viewer('cesiumContainer', { | |
imageryProvider : Cesium.createTileMapServiceImageryProvider({ | |
url : Cesium.buildModuleUrl('Assets/Textures/NaturalEarthII') | |
}), | |
baseLayerPicker : false, | |
geocoder : false | |
}); | |
Cesium.CzmlDataSource.load(czml).then(function(dataSource) { | |
viewer.dataSources.add(dataSource); | |
viewer.selectedEntity = dataSource.entities.getById('Test Object'); | |
viewer.scene.camera.setView({ | |
destination: Cesium.Cartesian3.fromDegrees(-8, 0, 7.7e7) | |
}); | |
viewer.clock.multiplier = 7200; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment