<p dir="ltr"><br>
I will try to add a group element to every class . With the same group value.<br>
A.</p>
<div class="gmail_extra"><br><div class="gmail_quote">Il 25 set 2016 12:51 PM, "aborruso" <<a href="mailto:aborruso@gmail.com">aborruso@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I have a small problem with WMS legend. I have this kind of layer definition<br>
in a map file:<br>
<a href="https://gist.github.com/aborruso/ed4671f1884d48b61275ef70f0f0d2ef" rel="noreferrer" target="_blank">https://gist.github.com/<wbr>aborruso/<wbr>ed4671f1884d48b61275ef70f0f0d2<wbr>ef</a><br>
<br>
This is my legend definiton:<br>
<br>
  LEGEND<br>
    KEYSIZE 20 10<br>
    KEYSPACING 5 5<br>
    LABEL<br>
      FONT "vera_sans"<br>
      SIZE 8<br>
      OFFSET 0 0<br>
      SHADOWSIZE 1 1<br>
    END # LABEL<br>
    STATUS ON<br>
  END # LEGEND<br>
<br>
I have 3 classes but If I open the legend I see only the 3 class symbols and<br>
not the legend labels (look at the below image).<br>
<br>
<<a href="http://osgeo-org.1560.x6.nabble.com/file/n5287624/kBuho1f.png" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/file/n5287624/<wbr>kBuho1f.png</a>><br>
<br>
If I use a layer with only one class I see in the legen also the label.<br>
<br>
This is the call to my legend object:<br>
<br>
<a href="http://localhost/cgi-bin/mapserv.exe?MAP=/myfolderd/myfile.map&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&_OLSALT=0.47996582672561616&SRS=EPSG:3857&SCALE=45354.24&WIDTH=250&LAYER=myLayer" rel="noreferrer" target="_blank">http://localhost/cgi-bin/<wbr>mapserv.exe?MAP=/myfolderd/<wbr>myfile.map&FORMAT=image/png&<wbr>TRANSPARENT=TRUE&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=<wbr>GetLegendGraphic&_OLSALT=0.<wbr>47996582672561616&SRS=EPSG:<wbr>3857&SCALE=45354.24&WIDTH=250&<wbr>LAYER=myLayer</a><br>
<br>
What's wrong in my layer definition?<br>
<br>
Thank you very much<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/WMS-Legend-with-<wbr>more-than-one-layer-class-<wbr>tp5287624.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a></blockquote></div><br></div>