Animation not working

Hi guys

I am very new to Cesium and tried to run the DataSources ‘czml’ example to get started on moving point data. All the right elements show on the map but the objects do not move. They just vibrate on the spot. Is someone able to help me get started please?

Here is the associated code.

viewer = new Cesium.Viewer(‘cesiumContainer’, {

imageryProvider: new Cesium.WebMapServiceImageryProvider({

url: terrainData.terrainUrl,

subdomains: terrainData.terrainSubdomains,

layers: terrainData.terrainImagery,

enablePickFeatures: true

}),

animation: true,

scene3DOnly: true,

baseLayerPicker: false,

fullscreenButton: true,

geocoder: false,

homeButton: false,

infoBox: false,

sceneModePicker: false,

selectionIndicator: false,

timeline: true,

navigationHelpButton: false,

creditContainer: ‘creditDiv’,

contextOptions: { failIfMajorPerformanceCaveat: false },

});

// Do TerraExplorer initialization related stuff inside initTE()

initTE();

//viewer.camera.flyTo({

// destination : Cesium.Cartesian3.fromDegrees(117.87721, -22.16342, 15000.0)

//});

viewer.dataSources.add(Cesium.CzmlDataSource.load(’./data/FMEMachinePositions/simple.czml’));

viewer.camera.flyHome(0);

Sandcastle has some very good examples (i.e. https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=CZML%20Path.html&label=CZML). See the ‘CZML’ section from the Gallery.

Also, are you sure that your CZML data is correct like it has multiple positions?

Hi AnG3L

I copied the simple.csml from the sandcastle where it was working fine. I think my problem has something to do with Terrain Explorer TE4W. Maybe there is something in that causing me pain.

Cheers

I contacted Skyline and they believe that they have a different version of Cesium in TE4W than the sandcastle has which is why animations don not work :frowning: