[mapserver-users] Label wrapping question
Dejan Gambin
dejan.gambin at coin.hr
Wed Sep 24 06:10:28 PDT 2014
In the meantime, I have slightly changed msWrapText() function in maplabel.c to get what I wanted. If someone is interested I can share the short piece of code.
regards, dejan
On 23. ruj. 2014., at 12:32, Dejan Gambin wrote:
> Hi,
>
> I have some users wishing to use long legend labels, but they don't fit well on my site. As I can see, MapServer is doing this - if maxlength > 0 and wrap = 'char' (usually space), insert a new line at the FIRST wrap character found AFTER maxlength character. This is leading to some bad results (label not wrapped or wrapped too early).
>
> My question is - shouldn't it be better to wrap at the LAST wrap character BEFORE maxlength character? Is this maybe implemented somewhere or there are plans for this?
>
> Thanks very much
>
> regards, dejan
> _______________________________________________
> 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