Solved! Go to Solution.
{"timeExtent":[<startTime>, <endTime>]}
{"id":<layerId>, "timeExtent":[<startTime>, <endTime>]}
{"timeExtent":[<startTime>, <endTime>]}
{"id":<layerId>, "timeExtent":[<startTime>, <endTime>]}
http://<server address>/arcgis/rest/services/<servicename>/MapServer?returnUpdates=true&f=json, and then use the result to update your Time Slider.
Hi Jason,
I'm sorry to be responding to this so many years later - but I'm in a pickle and your answer seems to be the only thing close to an answer I can find.
I am using Portal 10.4 and cannot upgrade at this time.
I'm looking for a way to make sure that the map updates itself when you run the GP service.
Any help would be appreciated! I'm going to put this in it's own thread as well.
Thanks!
Carmie
Hello,
Time aware services will report their time extents using the ‘returnUpdates’ endpoint, but you need to make sure the service includes the ‘hasLiveData’ property somewhere.
For a Map Service, make sure the Time dialog on the Layer Properties for at least one Layer has the ‘data changes frequently so calculate time extent automatically’ check box is checked on. This sets the Layer ‘hasLiveData’ to true and will refresh the properties periodically.
For other Services, you’ll want to leverage the ‘Refresh Service’ GP tool and set the service JSON properties to include the key value pair of "hasLiveData": "true". See: https://developers.arcgis.com/rest/services-reference/refreshservice.htm
In most cases, the REST cache CAN be cleared to propagate the updated time details to the service following a data change by invoking the ‘Clear Rest Cache’ admin function. Simply specify the service folder, name, and type to flush the cache and force the service to update the properties: https://developers.arcgis.com/rest/enterprise-administration/server/handlersrestcacheclear.htm
I hope this helps, Paul