Select to view content in your preferred language

Time Slider for Image Servies in Flex

2180
3
11-15-2010 04:38 AM
CynthiaMatney
Emerging Contributor
Hello.  I am new to Flex (and server) and have downloaded the Flex Viewer uncompiled version.  I am wanting to create a time slider bar for our city's imagery.  We have the image server extension and I have created a mosaic dataset for each year (1998, 2002, 2006, 2008, 2010).  I have published each of these to the server.  I have no clue how to go about getting these into a time slider bar.  Can anyone help me with this?

Thanks!
Cynthia
Tags (2)
0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
Do you have one service or multiple services?  Either way, are they time-aware?

Compare for example with this time-aware service where the Time Info is listed in the Service Directory - http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/World/MODIS/ImageServer which has:
Time Info:
      Time Extent: [2004/01/01 00:00:00 UTC, 2004/12/01 00:00:00 UTC]


You also need to (manually) specify the times you want to use in the TimeSlider widget.  This will then be used on all time-aware layers (which is why they need to be "time-aware" for things to work).
0 Kudos
CynthiaMatney
Emerging Contributor
There are multiple services (one for each year of imagery).

No, none of them have information in the "Time Info" area.  How does this information get there?  Is it something I can manually do or is it automatically done somewhere?  When I created the mosaic datasets there wasn't an option regarding time.
0 Kudos
BjornSvensson
Esri Regular Contributor
"As with feature layers, you need a time field in your mosaic dataset's attribute table to indicate the valid time for each raster. Similar to feature layers, you can enable time on the Time tab of the mosaic dataset's Layer Properties dialog box."
- http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005z00000004000000.htm

The desktop help is your friend for this 🙂  See for example http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_s_new_for_temporal_data/00qp00000...

Once "time" is enabled, publish the service again, empty the cache etc and the service directory should display the Time Info.
0 Kudos