[mapserver-users] WMS Legend with more than one layer class

Andrea Peri aperi2007 at gmail.com
Sun Sep 25 04:26:59 PDT 2016


I will try to add a group element to every class . With the same group
value.
A.

Il 25 set 2016 12:51 PM, "aborruso" <aborruso at gmail.com> ha scritto:

Hi,
I have a small problem with WMS legend. I have this kind of layer definition
in a map file:
https://gist.github.com/aborruso/ed4671f1884d48b61275ef70f0f0d2ef

This is my legend definiton:

  LEGEND
    KEYSIZE 20 10
    KEYSPACING 5 5
    LABEL
      FONT "vera_sans"
      SIZE 8
      OFFSET 0 0
      SHADOWSIZE 1 1
    END # LABEL
    STATUS ON
  END # LEGEND

I have 3 classes but If I open the legend I see only the 3 class symbols and
not the legend labels (look at the below image).

<http://osgeo-org.1560.x6.nabble.com/file/n5287624/kBuho1f.png>

If I use a layer with only one class I see in the legen also the label.

This is the call to my legend object:

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

What's wrong in my layer definition?

Thank you very much



--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160925/3040bd97/attachment.htm>


More information about the MapServer-users mailing list