# How to stop kml/czml tour

**URL:** <https://community.cesium.com/t/how-to-stop-kml-czml-tour/7210>\
**Category:** CesiumJS\
**Created:** [July 24, 2018, 8:10am UTC](https://community.cesium.com/t/how-to-stop-kml-czml-tour/7210 "2018-07-24T08:10:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Tian](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@Karl\_Tian](https://community.cesium.com/u/Karl_Tian)\
**Post date:** [July 24, 2018, 8:10am UTC](https://community.cesium.com/t/how-to-stop-kml-czml-tour/7210/1 "2018-07-24T08:10:59Z")

</div>

We create a kml file with gx:MultiTrack, succeed putting it into cesium and make it move.

Basically we fallow the bike ride example([https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=KML.html&label=DataSources](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=KML.html&label=DataSources))

But after it finish the tour, it just automatically go back to the first coordinate and start all over again.

How to make it only run once?

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [July 25, 2018, 3:05pm UTC](https://community.cesium.com/t/how-to-stop-kml-czml-tour/7210/2 "2018-07-25T15:05:12Z")

</div>

Hi Karl,

You should be able to get the data source (KML or CZML) **[clock](https://cesiumjs.org/Cesium/Build/Documentation/KmlDataSource.html?classFilter=kml#clock)** property. You can modify its [**clockRange**](https://cesiumjs.org/Cesium/Build/Documentation/DataSourceClock.html#clockRange)value, which will determine how the clock behaves when the end of the loop is reached. Set it to **ClockRange.LOOP\_STOP**.

Thanks,

Gabby
