I am able to successfully change the LayerDataSource of an ArcGISDynamicMapServiceLayer using Javascript. However, when I change the data source I lose the symbology associated with the original map service. The map renders in black and white. The catch is that the underlying data source is raster data rather than vector data. I've been unable to find a Javascript API to modify the symbology for raster data. What am I missing?
You say you're using an ArcGISDynamicMapServiceLayer...have you tried ArcGISImageServiceLayer? It seems like this sample is what you would need to get started
Good suggestion. Unfortunately the ArcGISImageService does not appear to support dynamic layers. Our application design requires the ability to swap out the underlying data source which is supported by the ArcGISMapService. Thanks -- Lesley