Labels in a Legend Image are shifted downward, the shift is worse when more layers are turned on.
The labels next to the symbol graphics within a Legend Image (not created by
an HTML legend template) are shifted down relative to the symbol graphics.
The more layers are turned on, the further down the labels are shifted.
I've tried different fonts and various legend settings, but the shift
consistantly occurs. Using the OFFSET parameter to correct the problem only
helps slightly because the amount of downward shift varies with the number of
layers turned on.
The problem does not occur using MapServer 4.6 on the same server with the
same fonts and legend settings.
The following has been suggested by Steve Lime:
"I do think there is a bug present. Probably a counter not being reset properly
as layers are looped through. Please file a bug with a couple of image samples
that show the progressive shift downward.
Steve"
Examples can be seen at the following links, the first has few layers turned
on, no shift is apparent. The second has many layers turned on, with the
shift severe enough to almost align the labels with the next symbol down from
where they should be.
http://www.bgcengineering.info/dnv/images/LegendShift1.jpg
http://www.bgcengineering.info/dnv/images/LegendShift2.jpg
I'm using MapServer 4.8b2 CGI, Windows Server 2003
My legend settings in my mapfile are:
LEGEND
STATUS ON
KEYSIZE 20 12
KEYSPACING 3 5
IMAGECOLOR 230 230 230
LABEL
COLOR 0 0 0
SIZE 10
FONT "Arial"
TYPE truetype
END
END
Cheers,
Ken Lord
Vancouver BC