ArcGIS Blog

Mapping

ArcGIS Maps SDK for JavaScript

Applying custom ticks and labels for the TimeSlider widget

By Undral Batsukh

At ArcGIS JavaScript API version 4.16, we added a new property called tickConfigs on the TimeSlider widget. This property opens up endless possibilities for you to customize the default ticks and labeling system for the TimeSlider widget. This was a commonly requested enhancement. Please check out the video below to understand and how to take advantage of this property for your time slider. You can find the source code and live sample used in the video from here.

Share this article

Subscribe
Notify of
0 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Anonymous
June 2, 2021 2:56 pm

Thank you! We looked for this last week and couldn’t find it (because the blog wasn’t available yet). We were going nuts. Templates are due tomorrow for multiple services and this saved us.

Randall Chew(@emerson-chewgisinc-com_gisi)
November 9, 2021 11:54 am

Thanks for the article! This approach doesn’t look to work with conditional expressions from what I can tell. Even just making a duplicate form with cond. expressions will break the form from what I can tell.

Jill Halchin(@jyh)
July 14, 2022 5:48 am

I need to create and manage Field Maps for many projects in dozens of parks. We’re likely to reach the limit of 16 offline areas per map fairly quickly, so duplicating maps should be a big help. This article mentions making “slight adjustments” to the copy of the map. Do you mean to imply that some types of changes would cause problems with the original map or forms? Is it okay to add or remove layers, and if so, does this apply to both operational and reference layers? Change a form or create a form for an additional layer? Filters?… Read more »

Last edited 3 years ago by Jill Halchin
Julia Surkis(@gisutahdem)
August 30, 2022 10:06 am

Is the technique of copying forms available in the Map Viewer as well as Field Maps? I’ve attempted copying the forminfo in the AGO Assistant without luck and I’m wondering if it’s just not an option for my application (or if I need to do more troubleshooting).

Erica Newton(@erica-newtonontario-ca_mnrf)
December 9, 2024 11:11 am

I was able to use the AGO Assistant approach, great instructions. For the python instructions, it would be helpful to include directions for folks that use SAML authentication.

Sean Wray(@spwraygarverusa-com_garver)
May 9, 2025 4:45 pm

When I look in AGO Assistant there is not a formInfo JSON object in my layer. Is it because I saved my form to the layer and not to the map? If so is there another way for me to create the formInfo JSON object?

I’m in the same boat as Jim as we will need to make several maps for several project and I would like to reuse the form on a new layer without having to re-create it every time.

Jerry Sneary(@gerald-snearyshreveportla-gov)
June 19, 2025 9:58 am

I used AGO Assistant and copied everything over. I’m looking at the syntax and everything seems to be there but it’s not working. I even copied the entire JSON and it did not work either. Thankfully, I kept all of my forms open in a separate browser. So that I can painstakingly copy everything over one by one. There must be a better way. ugh

Last edited 1 month ago by Jerry Sneary