[mapserver-users] ALIGN Label option

thomas bonfort thomas.bonfort at gmail.com
Wed Feb 24 12:01:05 EST 2010


the label block in
http://code.google.com/p/mapserver-utils/source/browse/trunk/places.map
is how the wrapping is done on city names on the map shown on the
mapserver front page.
as for your label block:
* center must not be quoted, it's a keyword
* maxlength 12 will not wrap many labels, unless you have very long
ones (the wrapping length is in characters, not pixels)

regards,
thomas

On Wed, Feb 24, 2010 at 17:28, Simon Mercier <mercier.simon at gmail.com> wrote:
> Hi, Does anybody have success with the ALIGN parameter assumed to be
> implement since 5.4?
> (http://mapserver.org/development/rfc/ms-rfc-40.html#rfc40) I try with
> mapserver 5.6.1 on linux and via MS4W-beta10. This is my mapfile and still
> no success?  I have found no example I do not see where I fail on this one?
> getSymbol(): Symbol definition error. Parsing error near (center):(line 55)
>             LABEL
>                 OUTLINECOLOR 255 255 255
>                 COLOR 0 0 0
>                 FONT "vera"
>                 TYPE truetype
>                 POSITION AUTO
>                 BUFFER 5
>                 SIZE 8
>                 OFFSET 1 1
>                 MAXLENGTH 12
>                 WRAP " "
>                 ALIGN "center"
>             END
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


More information about the mapserver-users mailing list