Hi list,<br><br>it seems an image returned by WMS GetLegendGraphic can't be made transparent unless we use the deprecated TRANSPARENT property of the LEGEND object.<br><br>My outputformat is defined transparent:<br><br>
OUTPUTFORMAT<br> NAME "png"<br> MIMETYPE "image/png"<br> DRIVER "GD/PNG"<br> EXTENSION "png"<br> IMAGEMODE "RGBA"<br> TRANSPARENT TRUE<br> END<br><br>
If I try an equivalent mode=legend request the legend does come back transparent, so I believe this is likely a problem in the mapwms.c code.<br><br>This is both a problem in MS 5.0 and 4.8.4.<br><br>Any pointers?<br><br>
Example page to reproduce:<br><br><html><br><body style="background-color:#FF0000"><br><img src="<a href="http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?mode=legend&layer=AAA212">http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?mode=legend&layer=AAA212</a>"><br>
<img src="<a href="http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?service=WMS&format=image/png&request=GetLegendGraphic&version=1.1.1&layer=AAA212">http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?service=WMS&format=image/png&request=GetLegendGraphic&version=1.1.1&layer=AAA212</a>"><br>
</body><br></html><br><br>Best regards,<br>Bart<br><br><br>