1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
   | const viewer = new Cesium.Viewer("cesiumContainer", {   shouldAnimate: true, });
  const czml = [   {     id: "document",     name: "CZML Model",     version: "1.0",     clock: {              interval: "2019-06-01T16:00:00Z/2019-06-01T16:10:00Z",       currentTime: "2019-06-01T16:00:00Z",       multiplier: 60,       range: "LOOP_STOP",        step: "SYSTEM_CLOCK_MULTIPLIER",      },   },   {     id: "test model",     name: "Cesium Air",     position: {       cartographicDegrees: [-77, 37, 10000],     },     model: {       gltf: "https://cesium.com/public/SandcastleSampleData/launchvehicle.glb",       scale: 2.0,       minimumPixelSize: 128,       runAnimations: false,       articulations: {          "Fairing Open": {            epoch: "2019-06-01T16:00:00Z",                      number: [0, 0, 600, 120],         },         "Fairing Separate": {            epoch: "2019-06-01T16:00:00Z",           number: [0, 0, 400, -50],         },         "Fairing Drop": {           epoch: "2019-06-01T16:00:00Z",           interpolationAlgorithm: "LAGRANGE",           interpolationDegree: 2,           number: [0, 0, 80, 0, 100, 0, 120, -1, 600, -120],         },       },     },   }, ];
  const dataSourcePromise = viewer.dataSources.add(   Cesium.CzmlDataSource.load(czml) );
  dataSourcePromise   .then(function (dataSource) {     viewer.trackedEntity = dataSource.entities.getById("test model");   })   .catch(function (error) {     console.error(error);   });
  |