Hi,<div><br></div><div>can't get WMSLegend working for a layer. </div><div>I am working on this web app: <a href="http://cen.isprambiente.it/~rmorelli/openlayers/">http://cen.isprambiente.it/~rmorelli/openlayers/</a></div>
<div><br></div><div>Legend shows up only for overlays layers but not for the others.</div><div><br></div><div>Layers come from a mapserver WMS server, mapfiles CLASS definitions are pretty similar and METADATA parameters also do; GetLegendGraphic requests work as you can test below:</div>
<div><br></div><div>Elettrodotti</div><div><a href="http://cen.isprambiente.it/cgi-bin/elf_italia?SERVICE=WMS&VERSION=1.1.1&REQUEST=getlegendgraphic&FORMAT=image/png&LAYER=linee">http://cen.isprambiente.it/cgi-bin/elf_italia?SERVICE=WMS&VERSION=1.1.1&REQUEST=getlegendgraphic&FORMAT=image/png&LAYER=linee</a></div>
<div><br></div><div>Overlays</div><div><a href="http://cen.isprambiente.it/cgi-bin/rf_indicatori?SERVICE=WMS&VERSION=1.1.1&REQUEST=getlegendgraphic&FORMAT=image/png&LAYER=n_sost_regione">http://cen.isprambiente.it/cgi-bin/rf_indicatori?SERVICE=WMS&VERSION=1.1.1&REQUEST=getlegendgraphic&FORMAT=image/png&LAYER=n_sost_regione</a></div>
<div><br></div><div>Any hints?</div><div><br></div><div>Regards</div><div>/raffaele</div><div><br></div>