Select to view content in your preferred language

Legend for raster Layers

2158
2
01-19-2011 01:25 PM
giuseppemolinario
Deactivated User
Hello everyone,

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?

Thanks
Giuseppe
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
Yes.  See for example http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/legend where the first four layers are all raster layers.

Do you have a specific example where it is not working for you?
0 Kudos
giuseppemolinario
Deactivated User
Yes.  See for example http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/legend where the first four layers are all raster layers.

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.

Thanks again.

Giuseppe
0 Kudos