Select to view content in your preferred language

Set time slider so that it always ends at the current date/time

732
2
Jump to solution
04-15-2022 06:21 PM
Heidi_Kristenson
Regular Contributor

We provide image services that are updated daily with new acquisitions. We present them in web maps for users to access, and I would like to set the time slider to default to displaying the past two weeks of data. Is there a way to do that in MapViewer or MapViewer Classic?

If not, is it possible to write a script that I could run daily to update the time slider settings for each of my webmaps? 

These are the settings I currently use, but I have to go in to manually set the end date:

Heidi_Kristenson_1-1650071897846.png

then move my two-week slider so that it's at the end of the timeline:

Heidi_Kristenson_2-1650071980063.png

then save the map.

Thanks!

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JiaLiu1
Occasional Contributor
2 Replies
JiaLiu1
Occasional Contributor

Here's an (old) post from Esri, if you have not resolved this issue: https://www.esri.com/arcgis-blog/products/arcgis-living-atlas/real-time/auto-update-time-in-web-maps... 

Heidi_Kristenson
Regular Contributor

Thanks @JiaLiu1! That was really helpful! We've implemented an automated workflow based on that post. 

0 Kudos