Timeline for Changing to alternate label if first label does not fit in QGIS?
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 8, 2017 at 9:00 | history | edited | mgri |
edited tags
|
|
Jan 26, 2017 at 9:05 | vote | accept | Ian Turton♦ | ||
Jan 18, 2017 at 8:26 | comment | added | Ian Turton♦ | @JesseMcMillan I haven't had a chance to test them yet | |
Jan 18, 2017 at 4:35 | comment | added | user52245 | Did any of these solutions work for you iant? | |
Jan 17, 2017 at 22:10 | history | edited | PolyGeo♦ | CC BY-SA 3.0 |
edited title
|
Jan 17, 2017 at 21:12 | answer | added | Johanna | timeline score: 1 | |
Jan 15, 2017 at 20:11 | answer | added | user52245 | timeline score: 9 | |
Jan 15, 2017 at 18:48 | comment | added | user52245 | You could use a Python custom expression taking the label, font size, and scale and returning true or false if it will fit. Then in expression engine use an if clause to switch labels. I'll work up an answer for you later with examples. | |
Jan 15, 2017 at 17:10 | history | edited | Ian Turton♦ |
edited tags
|
|
Jan 15, 2017 at 17:09 | comment | added | Ian Turton♦ | mostly I'm concerned with readability so I don't want to mess with the font size | |
Jan 15, 2017 at 17:01 | comment | added | user52245 | What about dynamically changing the font to fit? You could take the longest of the features dimensions, divide by how many characters in the label string, and either do some math with the scale or just use that to alter your already set font size... Alternatively you could use that measure (longest feature dimension / len of string) and if it's too long label with the id. | |
Jan 15, 2017 at 16:18 | answer | added | Tom Chadwin | timeline score: 3 | |
Jan 15, 2017 at 14:57 | history | tweeted | twitter.com/StackGIS/status/820646166446612480 | ||
Jan 15, 2017 at 13:04 | comment | added | Ian Turton♦ | I'm thinking of a county map of GB | |
Jan 15, 2017 at 13:03 | comment | added | tallistroan | Keep in mind, that it might be confusing for the user of the map, when polygons of the same feature class are labeled in different ways and additionally only some of them appear in an attribute table. | |
Jan 15, 2017 at 11:25 | history | asked | Ian Turton♦ | CC BY-SA 3.0 |