I get an error when I try to add a raster layer to a mapcontrol layers collection using the FeatureLayer(url) where url points to a single layer.
I can add the raster using the ArcGISDynamicMapServiceLayer and passing the url of the service, but then I get all the layers.
In my scenario I have one service with multiple layers (all rasters) and I want to load one layer (i.e. raster) at a time.
Any ideas?
btw, adding a layer at a time works fine for standard geometries (point,line,polygon), just not for rasters.