Hello all,
I'm using ArcGIS Pro 2.9.3. I have a need to create a label that stacks after the word "to". But the stacking separator only allows one character. If I use the "o" character it splits it everywhere I have an "o" (naturally) and this is not desirable. Screenshot:
Would like to split after the word "to":
Splitting after every "o" - Not desirable:
Also, side note: I've never gotten the "Maximum number of lines" to actually constrain the label to the maximum number of lines. Bug?
In the above example screenshot of a label with 4 lines the settings are actually:
Thank you!
I believe that "max lines" setting is how many times the stack settings will insert line breaks. Do you happen to have a manual line break in your string anywhere?
If you need to split the label at a multi-character string, I'd insert the break into the label string itself on the Label Expression, not in the stacking sections.
var l = $feature.label_field
return replace(l, 'to', 'to\n') // or just '\n' to make "to" disappear
@jcarlson Yes, I do have a manual line break in my string - so that finally makes sense.
Thank you! That was perfect and exactly what I needed!
Another method besides the label expression that @jcarlson suggested is to use an abbreviation dictionary (translation) to add a stacking character such as a slash, then force stack on that character in the stacking settings.
Thanks @JesseWickizer! I didn't know that either.
Solutions have been offered in the comments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.