# Entity not Visually Updating when its Position Changes

**URL:** <https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444>\
**Category:** CesiumJS\
**Created:** [July 16, 2021, 7:21am UTC](https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444 "2021-07-16T07:21:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Shrivastava](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ankit_shrivastava/32/4240_2.png) [@Ankit\_Shrivastava](https://community.cesium.com/u/Ankit_Shrivastava)\
**Post date:** [July 16, 2021, 7:21am UTC](https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444/1 "2021-07-16T07:21:11Z")

</div>

Hi, i am facing issue on updating the position of entity. So recently, I am using latest cesium library which supports worker. but when entity change the position (let say live drone flight) it stucks and when i move the map / shake the map it runs again but after 2 / 3 seconds it again gets stuck please find the video URL below for more clarification.

Here is the video link :

> **[16.07.2021\_12.46.09\_REC](https://screenrec.com/share/EURizgTM7C)**
>
> Recorded with ScreenRec

Please help me as soon as possible Thanks

---

<div class="post-metadata">

**Author:** ![jakubs](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jakubs/32/3458_2.png) [@jakubs](https://community.cesium.com/u/jakubs)\
**Post date:** [July 16, 2021, 1:06pm UTC](https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444/2 "2021-07-16T13:06:14Z")

</div>

How about forcing scene.requestRender() in certain time intervals, eg. every half a second?

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [July 19, 2021, 12:55am UTC](https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444/3 "2021-07-19T00:55:28Z")

</div>

@jakubs

Welcome to the community! I think this is a great suggestion - @Ankit_Shrivastava I am curious to hear how this works out.

-Sam

---

<div class="post-metadata">

**Author:** ![Alexander\_Johannesen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/alexander_johannesen/32/2008_2.png) [@Alexander\_Johannesen](https://community.cesium.com/u/Alexander_Johannesen)\
**Post date:** [July 19, 2021, 1:17am UTC](https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444/4 "2021-07-19T01:17:22Z")

</div>

Hi,

How do you update the position? Is this something you do manually through the API, through CZI, or maybe a CallbackProperty? Depending on the method of updating the position depends on how Cesium is able to update the render cycle. Dragging the map is a tricky state (some things continue, other things pause), as well as maintaining a real-time (semi or otherwise) render cycle. Could you create a small Sandcastle that shows us that real-time cycle and how you update the position?

Cheers,

Alex

---

<div class="post-metadata">

**Author:** ![Ankit\_Shrivastava](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ankit_shrivastava/32/4240_2.png) [@Ankit\_Shrivastava](https://community.cesium.com/u/Ankit_Shrivastava)\
**Post date:** [July 19, 2021, 6:24am UTC](https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444/5 "2021-07-19T06:24:29Z")

</div>

Hi sir,

Thanks for your reply, so i am using czml for playback history of my drone telemetry. i am taking the reference from cesium sandcastle example of this [Cesium Demo](https://sandcastle.cesium.com/gallery/CZML%20Path.html)

i am doing the same thing as mentioned in this example :

But i got what the issue i was encountered so what i did is 🙂

let promise = CzmlDataSource.load(drawOps1).then(dataSourceFlight =\> {

```
  this.dataSourceFlight = dataSourceFlight
  
 //earlier i used this 
  this.viewer.dataSources.add(dataSourceFlight)

//and i change above line with this line:
this.viewer.trackedEntity = this.dataSourceFlight.entities.getById('path')

this.viewer.zoomTo(promise)

```

Now it is working.

But really thanks for your response. I am greatfull to chat with you 🙂

---

<div class="post-metadata">

**Author:** ![Alexander\_Johannesen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/alexander_johannesen/32/2008_2.png) [@Alexander\_Johannesen](https://community.cesium.com/u/Alexander_Johannesen)\
**Post date:** [July 19, 2021, 6:29am UTC](https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444/6 "2021-07-19T06:29:11Z")

</div>

All good; glad you figured it out.

Cheers,

Alex

---

<div class="post-metadata">

**Author:** ![Ankit\_Shrivastava](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ankit_shrivastava/32/4240_2.png) [@Ankit\_Shrivastava](https://community.cesium.com/u/Ankit_Shrivastava)\
**Post date:** [August 10, 2021, 10:17am UTC](https://community.cesium.com/t/entity-not-visually-updating-when-its-position-changes/14444/7 "2021-08-10T10:17:06Z")

</div>

Hi sir, i need your support on this issue : [Cesium & Webpack Web worker Not updating the viewer](https://community.cesium.com/t/cesium-webpack-web-worker-not-updating-the-viewer/14762)
