<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><span style="font-family:arial,sans-serif">2015-08-03 14:16 GMT+02:00 Raffaele Morelli </span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:raffaele.morelli@gmail.com" target="_blank">raffaele.morelli@gmail.com</a>></span><span style="font-family:arial,sans-serif">:</span><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Short story: I can't get html legend to work...<br>
<br>
legend.html file is in the same directory of the mapfile, as you can see the LABEL block is<br>
a verbatim copy from Mapserver documentation.<br>
<br>
The INCLUDE layer is a point layer with CLASS correctly defined.<br>
<br>
This my request to test<br>
<a href="http://localhost/cgi-bin/mapserv?MAP=/home/www/geomoose-2.8.0/maps/cen_default//cen_default.map&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&_OLSALT=0.9622128666378558&SRS=EPSG:3857&SCALE=6933486.650500195&WIDTH=250&STYLE=&LAYER=sostegni" rel="noreferrer" target="_blank">http://localhost/cgi-bin/mapserv?MAP=/home/www/geomoose-2.8.0/maps/cen_default//cen_default.map&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&_OLSALT=0.9622128666378558&SRS=EPSG:3857&SCALE=6933486.650500195&WIDTH=250&STYLE=&LAYER=sostegni</a><br>
<br>
The legend is returned a png file, just like TEMPLATE statement wasn't taken into account.<br><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">​Reply to myself because I've found it's not a mapserver related issue but a geomoose one (no matter about LEGEND and TEMPLATE statements it always produces a png image) .</div></div><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">​/r​</div><br></div></div><br></div></div>