AnsweredAssumed Answered

Map Refresh Issue Relating to TimeExtent

Question asked by chagan02 on May 7, 2015

All,

 

I have JS code that loops through a series of layers in the Esri API.  I have the layers (ArcGISDynamicMapServices) setup with refreshinterval() so that they refresh.  The issue is that they do refresh, however the map keeps going back to the original (on load) start time.  Thus, if the map is loaded for 1 hour with a weather radar layer, it jumps from the initial time, to the current time at the refresh interval each time through the visibility loop.  Can anyone tell me why this is happening?  I thought that it would just show the most recent time frame for that particular layer.  When refreshinterval() is called on a layer, does it adjust the map timeExtent, or just pull in the layers most recent image?  And how does this work if you have two layers visible that have different timeExtents?

 

Thanks.

Outcomes