# Display CZML entity when loaded

**URL:** <https://community.cesium.com/t/display-czml-entity-when-loaded/4047>\
**Category:** CesiumJS\
**Created:** [April 26, 2016, 9:55am UTC](https://community.cesium.com/t/display-czml-entity-when-loaded/4047 "2016-04-26T09:55:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Federico\_Silveri](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@Federico\_Silveri](https://community.cesium.com/u/Federico_Silveri)\
**Post date:** [April 26, 2016, 9:55am UTC](https://community.cesium.com/t/display-czml-entity-when-loaded/4047/1 "2016-04-26T09:55:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [April 26, 2016, 2:26pm UTC](https://community.cesium.com/t/display-czml-entity-when-loaded/4047/2 "2016-04-26T14:26:28Z")

</div>

Hello Federico,

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

Thanks,

Hannah

---

<div class="post-metadata">

**Author:** ![Daren](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/daren/32/3476_2.png) [@Daren](https://community.cesium.com/u/Daren)\
**Post date:** [March 1, 2022, 7:43pm UTC](https://community.cesium.com/t/display-czml-entity-when-loaded/4047/3 "2022-03-01T19:43:28Z")

</div>

Hi Federico,

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