TimeSlider not working with time extent of another field

2917
1
07-24-2013 02:40 AM
ApurvDanke
Regular Contributor
Hi,

I am trying to provide option of using time extent from multiple time fields for layers in a dynamic map service. When I select the default time field which is set in the map service, it shows the time slider correctly, and when I play it, it shows all the features correctly.

The time extent for the default field is from July 2011 to Aug 2012. Now I have another time field which has range from Jan 2011 to Jul 2013. When I select this field in my custom widget, I find out the minimum and maximum time values for this field using a querytask, and then create a new time extent using these values. Then I set this new time extent to the particular layer's timeInfo as well as the timeslider to create the new time stops. I also set the layer's start time field as the new field.

What happens now is that though the time slider shows the correct time extent and the time stops, when I play the slider, then no features are displayed from Jan 2011 till June 2011. Only when the slider reaches to Jul 2011 i.e. the starting time value of default time field, it starts displaying the features. This continues till Aug 2012, and after that till Jul 2013, there is no further addition of features on the map as all features get displayed by Aug 2012.

Does anyone have any idea how this can be achieved? I am using 3.4 API/AGS 10.1.

Regards,
Apurv
Tags (2)
0 Kudos
1 Reply
HumzaAkhtar
Deactivated User
Hi,
I am having the same issue with displaying multiple feature layers on the map at the same time. The problem is that the TimeExtent is bound to the Map which is hosting these layers. IF anyone has found the solution for this issue. Please let us know.
0 Kudos