Legend Labels offset down.

Steve Lime steve.lime at DNR.STATE.MN.US
Tue Dec 13 21:27:09 EST 2005


You see that offset with some fonts. I'm not sure why and it is not consistent. It could be problems in the way GD is interpreting font metrics or problems with the font file itself (they are not all created equal). Could even be a MapServer bug but if so I would expect a more consistent problem. Anywho there is an easy workaround. Use the LABEL OFFSET parameter to nudge them up a bit (e.g. OFFSET 0 -2).

Steve

>>> Ken Lord <kenlord at GMAIL.COM> 12/13/05 8:15 PM >>>
Hi List,

In my legend image (not an html legend),  with mapserver 4.8b2 CGI,
the labels for the features in the legend are being placed to the
lower right of the legend icon, instead of directly to the right.

This position has the appearance of the default lower right labelling
position for features on the map,  but of course makes the legend
impossible to read, with all the text offset down, next to the wrong
legend icon.

I've confirmed this by setting the Y spacing in the legend to a large
value to space it all apart.

I've tried using POSITION cr  within the label object of my legend in
my mapfile, but it does not help (and was not needed in the past
versions).

Am I missing something in my settings, or is this possibly a new bug?

Thanks,
Ken Lord
Vancouver BC



More information about the mapserver-users mailing list