I'm making a map of North Dakota and trying to label the counties, but one of the names (Golden Valley) is extremely long in a very tall county. I don't want to turn the label vertically, but would rather put 'Golden Valley' on two lines so it will fit.
Is it possible to edit only that label so that it is on two lines? And how?
Answer
You can use wordwrap()
function with condition in the expression to wrap only 'Golden Valley' when defining the field to use in Label with:
Here is the expression to use:
Case
When "CountyNM" = 'Golden Valley' Then wordwrap("CountyNM",6)
else "CountyNM"
End
Where "CountyNM" is the field name in this example. You need to change it based on the field name you are using.
Here is the result:
No comments:
Post a Comment