[mapserver-users] Embedded LEGEND Transparency

Seth G sethg at geographika.co.uk
Mon May 24 13:42:13 PDT 2021


Hi all,

The LEGEND TRANSPARENT keyword [1] has been deprecated since version 4.6 of MapServer and was planned to be removed for version 8.0.

However, there is a use case which I can't recreate using the OUTPUTFORMAT TRANSPARENT ON setting. 

The MAP itself has an IMAGECOLOR e.g. 255 200 0 (yellow), however an embeded LEGEND should be TRANSPARENT. 
Setting TRANSPARENT ON in the OUTPUTFORMAT makes both map and legend transparent. Leaving it off and the map and legend both have yellow backgrounds, and the area under the legend is no longer visible. 
This is one of the test cases [2] in msautotest. A similar issue seems to apply to SCALEBAR. 

Does anyone have a way to recreate this?
If not then it probably makes sense to un-deprecate the TRANPARENT keywork for LEGEND and SCALEBAR. 

Seth

[1] https://mapserver.org/mapfile/legend.html#mapfile-legend-transparent
[2] https://github.com/MapServer/MapServer/blob/main/msautotest/renderers/embed_legend_tr.map



--
web:http://geographika.co.uk
twitter: @geographika


More information about the mapserver-users mailing list