Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The TimeSlider functionality in the ArcGIS Server JS API is great for working with time-based vector features - you can scroll forwards and backwards through time to see the vector features which existed at a given time instant.

Has anyone created a similar time-slider for rasters?

I have a series of monthly weather grids which I'd like to display, allowing the user to scroll to any month (eg, show me the average rainfall for June).

The time-slider relies on the featureclass being defined in ArcMap with a Time attribute, but this isn't available for raster layers.

The best workaround I can think of is:

  • create a separate map document for each raster
  • build a separate tiled map service from each map document
  • add a DOJO slider to the map, with increments to mark each raster
  • use JavaScript to switch the appropriate raster on at each mark on the DOJO slider

Is anyone aware of a better/faster approach? This will be quite a laborious process as it will mean creating and maintaining multiple MXDs and MSDs.


share|improve this question
up vote 4 down vote accepted

The new mosaic datasets are time-aware and can be published as image services (requires Image extension)

Esri has a javascript sample , and if you look at the image service details you can see that there is a time extent along with the normal spatial extent, and even the Query operation supports time.

This is definitely a neater solution (provided you have access to the Image Extension), but under moderate load or large extents, I would speculate that switching between tiled services could be faster.

share|improve this answer
Genius, thanks for that. I haven't worked with Image services yet so I didn't realise they were time-aware. This should make things a lot easier – Stephen Lead Sep 16 '11 at 5:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.