Display CZML entity when loaded

Hi,

I have 15-16.000 entities stored in the same CZML file.

When i try to load them, Cesium automatically freeze all the widget on the screen (clock, animation, etc…), and comes back to work once all the entities were loaded.

I can cover this behavior by implementing a loading dialog, but i would like to render a single entity once loaded, not all the CZML at same time.

This is how i load the CZML:

loadedCZML = new Cesium.CzmlDataSource();

loadedCZML.load(pathCzml.satCZMLpath[i].CZMLFile).then(function(loaded) {

viewer.dataSources.add(loadedCZML).then(function(loaded){

   console.log("caricato");

});

}).otherwise(function(error) {

console.log(“mi sà di no”);

console.log(error);

});

``

And that is an extract of my CZML file:
[

{

“id”:“document”,

“name”:“test_document”,

“version”:“1.0”

},

{

“id”:“00001”,

“name”:“Entity_1”,

“description”:“desc”,

“point”:{

 "color":{

   "rgbaf":[

     1,1,0,1

   ]

 },

 "outlineColor":{

   "rgbaf":[

     0,0,0,1

   ]

 },

 "outlineWidth":2,

 "pixelSize":4,

 "show":true

},

“path”:{

 "width":1,

 "trailTime":7969,

 "leadTime":0,

 "show":false

},

“position”:{

 "referenceFrame":"INERTIAL",

 "epoch":"2016-04-25T23:59:03.15600000000268Z",

 "cartesian":[

      positions....

 ],

 "interpolationAlgorithm":"LAGRANGE",

 "interpolationDegree":2

}

}

``

There is a way to do it? Should i use Entity API instead of CZML?

Thank you,

Federico.

Hello Federico,

I’m a little confused about what you are trying to accomplish. Can you please give a little more detail?

Thanks,

Hannah

Hi Federico,

Did you ever discover the solution to your issue? I am experiencing the same thing. Thanks!