I am looking at this example on how to create a time slider using the arcgis javascript api. Instead of showing the data cumulative from the start date. I want to just show the data for that particular year. I have tried changing the ThumbCount to 1, but all that does is set the start time to the start time. Other than that, I can't seem to find any more information on how to get the behavior that I want.

I understand that I can use 2 thumbs on the time slider in order to get desired result. However, I am looking to see if it is possible by using only 1 thumb slider.

1 Answer 1


I must've missed it in the APi documentation. There is a function called singleThumbAsTimeInstant(createTimeInstants) for the time slider. Once you set this to true, then it will only display items at that specific time. The documentation is here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.