Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance label wrapping functionality #2383

Closed
mapserver-bot opened this issue Apr 3, 2012 · 5 comments

Comments

@mapserver-bot
Copy link

commented Apr 3, 2012

Reporter: tbonfort
Date: 2007/11/05 - 12:30
Trac URL: http://trac.osgeo.org/mapserver/ticket/2383
Currently labels can be told to wrap on characters other than newlines by specifying a WRAP parameter in the LABEL block. I think this is mostly used when specifying a ' ' (space) character so that text wraps on breaks between words, but implies that 'every' such character is transformed to a newline.

'''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.

@mapserver-bot

This comment has been minimized.

Copy link
Author

commented Apr 3, 2012

Author: tbonfort
Date: 2008/09/26 - 16:49
committed in 03b4c7b (r7928)

passing on to php-mapscript for labelObj getters and setters: ALIGN, MAXLENGTH and MINLENGTH (the latter currently unused)

@mapserver-bot

This comment has been minimized.

Copy link
Author

commented Apr 3, 2012

Author: aboudreault
Date: 2008/09/26 - 20:09
Changes in php-mapscript committed in 55cb555 (r7930)

@mapserver-bot

This comment has been minimized.

Copy link
Author

commented Apr 3, 2012

Author: tbonfort
Date: 2008/10/03 - 18:33
off to documentation

see http://mapserver.gis.umn.edu/development/rfc/ms-rfc-40/ for the details

@mapserver-bot

This comment has been minimized.

Copy link
Author

commented Apr 3, 2012

Author: tbonfort
Date: 2009/02/12 - 18:17
doc updated

@ghost ghost assigned jmckenna Apr 5, 2012

@tbonfort

This comment has been minimized.

Copy link
Member

commented Jun 26, 2013

RFC40 implementation details have been superseded by a more precise alignment method in RFC98 #4673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.