Stop timeline needle from dragging past a certain point

1. A concise explanation of the problem you’re experiencing.

I created a timeline overlay that allows for time manipulation upon hitting these bumpers on the timeline. However, I want to prevent a user from being able to drag the timeline needle past a certain point in time.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I essentially have start and end bumper and I want the needle to be limited to be in between these 2 area.

4. The Cesium version you’re using, your operating system and browser.

Cesium version 1.58.1 Windows 10 Chrome


You can do this by setting the start and stop time like in this example:

Let me know if that helps!


Thanks for your reply! Unfortunately it says I don’t have access to your link to view your example. :frowning:

That may have been a server issue on our side. Can you try again? You can also find it by going to the CesiumJS Sandcastle and searching “Clock” in the examples.