I already posted in the flexviewer forum - a simple question, does the REST api in arcgis 10 support the legend feature for raster layers as well or just vectors?
Do you have a specific example where it is not working for you?
Hi Bjorn,
Thank you very much for the reply.
I see from your example that the legend works on the rest API for rasters as well, however I have some questions.
1) Flexviewer v2.2. just came out recently supporting a legend widget - why does this legend widget not support legends for raster layers?
2) Are there examples that you know of in flex based applications that use the legend for raster layers?
3) Is there documentation on which type of image formats, and which type of services are supported? i.e. will a published Image Service (ImageServer) produce a legend in REST? will an image published as part of a Map Service (mxd) produce a legend? Will only an image published in alone in it's own Map Service produce a legend (your example).
I am 1 step away from putting my application in production, I thought the legend widget on flexviewer 2.2 was the silver bullit, but with out the raster legend it's useless in my application.