Join GitHub today
enhance label wrapping functionality #2383
'''proposed enhancement''': provide the labelObj with a new keyword, for example MINWRAPLENGTH, which will tell mapserver to only replace the WRAP character with a newline if the current line length is over MINWRAPLENGTH. This approach is rather straightforward as it can be done in the same loop as the character replacing function.
A more complicated approach would be to provide a MAXLENGTH keyword to enforce that a label cannot be wider than a given number of characters, but the implementation would be a little bit trickier, as it implies going back into the text string when MAXLENGTH chars have been encountered.
see http://mapserver.gis.umn.edu/development/rfc/ms-rfc-40/ for the details