[mapserver-users] Set legend image with text left aligned and upper

Andrea Peri aperi2007 at gmail.com
Thu Jan 10 08:52:41 PST 2013


Hi,

Is possible to set the legend image returned from a GetLegendGraphis
request to have the text left aligned and Upper ?
Actually it is return left aligned but bottom.

This is the settings I try

  LEGEND
    IMAGECOLOR 255 255 255
    STATUS OFF
    KEYSIZE 20 15
    KEYSPACING 5 5
    POSITION lr
    POSTLABELCACHE true
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      MAXLENGTH 20
      WRAP ' '
      COLOR 0 0 0
    END
  END

The "position" command don't seem to have any effect on this text
position. It act on the position of a legend embedded on a map
instead.

I try also the "position" setting inside the label object , but it
don't seem have any effect on a legend text.

Thx,

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the mapserver-users mailing list