Robert,
Thanks so much for providing this widget! I got it up and running in no time. Having the ability to adjust transparency is particularly useful for my application (I was bummed that ESRI removed that option from version 2.x).
I too have rasters in my map and when I was using the ESRI legend widget the 2 rasters that have a classified renderer did show up in the dynamic legend (the one raster I have displayed with a stretched renderer did not). It won't be too hard for me to work around this by converting the rasters to polygons but I just thought I'd point that out.
I also noticed an issue in the legend where I have layers classified by unique values. In a couple of cases I have multiple unique values grouped together and in these cases there are multiple entries showing up in the legend, whereas in the ESRI legend widget this was not the case (see attached screenshot). At any rate, I can certainly work around this as well and your widget is heaps better in many other ways.
cheers,
Chris
<legendexcludelayers> <!-- Both map services and map service sub layers can be excluded --> <legendexcludelayer layer="Bathymetry">1</legendexcludelayer> <legendexcludelayer layer="Bathymetry">2</legendexcludelayer> <legendexcludelayer layer="Bathymetry">3</legendexcludelayer> <legendexcludelayer layer="Bathymetry">4</legendexcludelayer> </legendexcludelayers>
<operationallayers> <layer label="Bathymetry" ....
<operationallayers> <layer label="Bathymetry" type="dynamic" visible="true" url="xxx"/> ...
<legendexcludelayers> <LegendexcludeLayer mapservice="Streets">0</LegendexcludeLayer> <LegendexcludeLayer mapservice="Blank">0</LegendexcludeLayer> <LegendexcludeLayer mapservice="World Aerial">0</LegendexcludeLayer> <LegendexcludeLayer mapservice="World Aerial">1</LegendexcludeLayer> <LegendexcludeLayer mapservice="World Aerial">2</LegendexcludeLayer> <LegendexcludeLayer mapservice="World Aerial">3</LegendexcludeLayer> <LegendexcludeLayer mapservice="USGS Topo">0</LegendexcludeLayer> </legendexcludelayers>
<legendexcludelayer mapservice="Streets">0</legendexcludelayer>
legendexcludelayer is now all lower case!
<legendexcludelayer layer="Bathymetry">1</legendexcludelayer>
<legendexcludelayer mapservice="Bathymetry">1</legendexcludelayer>