Opened 13 years ago
Last modified 13 years ago
#3284 new enhancement
Wrapping long labels
Reported by: | kimaidou | Owned by: | nobody |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | Version 1.7.0 |
Component: | MapCanvas | Version: | 1.6.0 |
Keywords: | label, wrap | Cc: | |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
Sometimes labels are very long, such as "River of the Big Dry Blue Reef". UMN Mapserver offers a way to wrap labels based on 2 parameters :
- a max length (integer)
- a wrap character, space by default
See http://mapserver.org/mapfile/label.html for more information.
I do not know how hard it is to implement this feature in the new label engine (considering curves, etc.)
Change History (4)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
There is already a wrapping option. But I have never figured out how to actually get layers to wrap. How is it supposed to work?
comment:3 by , 13 years ago
There is already a wrapping option. But I have never figured out how to actually get layers to wrap. How is it supposed to work?
Oh, I remember now. The User Guide says multiline labels work with a true line return. I'm not sure how you're supposed to enter a true line return though (on windows).
comment:4 by , 13 years ago
Aha, here's the answer from the mailing list:
You have to enter a "real" newline. If you want to enter multiline labels in QGIS you need to assign a TextEdit instead of LineEdit as edit widget in the vector layer properties' attributes tab.
Of course this feature request is still valid, as it is about automatic wrapping, not wrapping with a manual line break.
I guess it would also be good if they could wrap to avoid collisions with features or other labels, instead of wrapping at a specified length :)