[mapserver-users] Label alignment
Matt McClelland
matt at wildwalks.com
Wed Mar 14 01:55:15 PDT 2012
Perhaps OFFSET x y is what you are after. I am having trouble visualizing
the problem.
But I think you want to nudge the label a bit to line up better with
elements on the map.
OFFSET allows you to move the label away from the start by by a number of
pixels.
Good luck with it.
Matt :)
Matt McClelland
mob: 0411 306 650
e-mail: matt at wildwalks.com
web: http://www.wildwalks.com/
Books: http://www.wildwalks.com/books
Newsletter: http://www.wildwalks.com/office/newsletters/
On Wed, Mar 14, 2012 at 12:26 PM, Ian Walberg <ian.walberg at airborne.aero>wrote:
> Folks,****
>
> ** **
>
> I am not sure what the correct terminology is for our current issue but
> let me give explaining it a try.****
>
> ** **
>
> We are using a label layer with transform off to display some overview
> information on a map.****
>
> ** **
>
> The text sometimes needs to be lined up horizontally or spaced evenly
> vertically.****
>
> ** **
>
> It appears that the text function is using the outer perimeter of the text
> as the anchor point for the location.****
>
> ** **
>
> So in the case where there are characters which drop below the normal text
> line (e.g. g, y p, j, q) then the text is not aligned as we would hope. The
> same is true for the top of the text with different characters of course.*
> ***
>
> ** **
>
> The text is then not aligned as you would expect if different labels are
> drawn say 3 in a row horizontally at the same vertical location.****
>
> ** **
>
> If we concatenate the labels to a single string this helps the individual
> lines but is misaligned vertically.****
>
> ** **
>
> So is there any way (or any plans) to help this? It could be that at
> alignment mode that is relative to either end of the line (not sure what
> it’s called) under the text would be what we need. This could also in some
> instances tidy up more traditional labels as they would be draw a little
> more naturally relative to the point.****
>
> ** **
>
> Looking forward to your thoughts and comments.****
>
> ** **
>
> Thanks****
>
> ** **
>
> Ian****
>
> ** **
>
> ** **
>
> _______________________________________________
> 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/20120314/ab1f3e00/attachment.htm>
More information about the MapServer-users
mailing list