-2

I have a set of raster layers that cover the same place, over different years. I want to display it on my website using the timeslider so that I can clearly view the changes between rasters over different years. However, the example given by ESRI site is based on featurelayer, and I have a raster layer. How can I make the raster layer time-aware?

Erica
  • 2,399
  • 5
  • 26
  • 34
Xi Wang
  • 21
  • 5

1 Answers1

0

If you currently have multiple raster layers, you will need to convert them to a single layer that also happens to be time-aware.

Esri Support wrote a blog post about this -- back in 2011, but the principles should still work -- and a GIS StackExchange question covers publication of time-aware datasets as an image service. To summarize their workflow:

  1. Create a new mosaic dataset or raster catalog. Add the individual rasters in.
  2. Add a new field, of type date (e.g. year).
  3. Populate year with values.
  4. Enable time on the layer, and publish it as an image service.

The Esri JavaScript API example will help with implementation, once you've got everything configured and published.

Community
  • 1
  • 1
Erica
  • 2,399
  • 5
  • 26
  • 34