- A concise explanation of the problem you’re experiencing.
I exported in czml a facility and UAS from STK v11.7 using the CZML Export Plug-in. The animation runs smoothly in the window on the “My Assets” page but in Sandcastle and my browsers the animation is choppy. I cut and paste the JavaScript right from Sandcastle into my subdomain HTML page.
- A minimal code example.
var viewer = new Cesium.Viewer(“cesiumContainer”);
var promise = Cesium.IonResource.fromAssetId(resource ID no.)
.then(function (resource) {
return Cesium.CzmlDataSource.load(resource);
})
.then(function (dataSource) {
return viewer.dataSources.add(dataSource);
})
.then(function (dataSource) {
return viewer.zoomTo(dataSource);
})
.otherwise(function (error) {
console.log(error);
});
3. Why do you need to do this?
Attempting to learn out to export czml files from STK and into Cesium for a demonstration
4. The Cesium version you’re using, your operating system and browser.
Cesium 1.75
OS: Windows 10
Browser(s): Chrome, MS Edge
Thanks.