# maintain animation time when remove(dataSourceCollection)

**URL:** <https://community.cesium.com/t/maintain-animation-time-when-remove-datasourcecollection/3726>\
**Category:** CesiumJS\
**Created:** [February 17, 2016, 2:04pm UTC](https://community.cesium.com/t/maintain-animation-time-when-remove-datasourcecollection/3726 "2016-02-17T14:04:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Hellstedt2](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@Erik\_Hellstedt2](https://community.cesium.com/u/Erik_Hellstedt2)\
**Post date:** [February 17, 2016, 2:04pm UTC](https://community.cesium.com/t/maintain-animation-time-when-remove-datasourcecollection/3726/1 "2016-02-17T14:04:26Z")

</div>

Good afternoon,

I have hit a snag while removing a dataSourceCollection from an animation.

If, at hour 3 of an animation, I remove one czmlDataSource from a dataSourceCollection, the animation time automatically returns to the the animations start time, or hour 0. Is there a setting that keeps the animation time at hour 3 while removing the czmlDataSource?

Cheers, erik

---

<div class="post-metadata">

**Author:** ![Scott\_Hunter](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/scott_hunter/32/2006_2.png) [@Scott\_Hunter](https://community.cesium.com/u/Scott_Hunter)\
**Post date:** [February 17, 2016, 3:25pm UTC](https://community.cesium.com/t/maintain-animation-time-when-remove-datasourcecollection/3726/2 "2016-02-17T15:25:32Z")

</div>

If you construct Viewer and pass in automaticallyTrackDataSourceClocks : false, it will not automatically change the animation time based on data sources. You can then configure the clock however you like.

---

<div class="post-metadata">

**Author:** ![Erik\_Hellstedt2](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@Erik\_Hellstedt2](https://community.cesium.com/u/Erik_Hellstedt2)\
**Post date:** [February 17, 2016, 11:00pm UTC](https://community.cesium.com/t/maintain-animation-time-when-remove-datasourcecollection/3726/3 "2016-02-17T23:00:45Z")

</div>

Lovely. Cheers.
