Giuseppe,
I know it has been close to a year since anything has been posted in this thread but after reading all of the posts I think I am dealing with a similar situation as you were. I would like to display both raster and vector data in Robert's legend widget. My raster data has been classified into three classes, and labeled appropriately in an mxd. I created a map service of the mxd, and the rasters display just right, except they serve very little purpose if the user cannot see what each class means. You mentioned figuring it out to some level and I was hoping you could point me in the right direction.
Thanks,
Chris
Hi Chris,
Unfortunately since my last post I have had a shift in priorities. My problem, which seems to be the same is yours, still does not have a solution. Robert's table of contents/legend combo widget is far more functional than the layer selector and the legend provided by ESRI with the flexviewer 2.2, yet it does not display raster legends. The ESRI legend widget does display rasters, hence I have been using it for my application, but with the following drawbacks: 1) it is not integrated with the table of contents or layer selector widget, so it takes up more map space, and 2) unless you want to have 2 legends displaying, you will use the esri layer selector widget instead of robert's TOC widget and so you will not have a) layer transparency and b) scale dependency indication.
At some point I am hoping to be able to find the time to look at these widgets in flash builder and see if I can make the one I want out of the two of them, but someone much more knowledgeable then me in FLEX will probably get to it before I find the time to do that.
Let me know if I have answered your question or you need more info.
Giuseppe
<Layer queryable="1" opaque="0" cascaded="0"> <Name>FADM_CASCADE_MTN_BOUNDARY_C</Name> <Title>Cascade Mountain Boundary - Colour Filled</Title> <!-- WARNING: Mandatory mapfile parameter '(at least one of) MAP.PROJECTION, LAYER.PROJECTION or wms_srs metadata' was missing in this context. --> <LatLonBoundingBox minx="-141.188" miny="45.971" maxx="-109.658" maxy="61.1846" /> <MetadataURL type="TC211"> <Format>html</Format> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://apps.gov.bc.ca/pub/geometadata/metadataDetail.do?recordUID=52400&recordSet=ISO19115"/> </MetadataURL> <Style> <Name>default</Name> <Title>default</Title> <LegendURL width="186" height="25"> <Format>image/png</Format> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://openmaps.gov.bc.ca/mapserver/geology-and-soils?service=WMS&version=1.1.1&service=WMS&...> </LegendURL> </Style> <ScaleHint min="0" max="17461.5996950373" /> </Layer>