Select to view content in your preferred language

Line label offset without label duplication

50
1
yesterday
Labels (2)
Jennifer_Parmeley
Frequent Contributor

Is there a simple way to offset line labels in a web map?
I have line labels with a 2pt halo to increase visibility. We'd like a little separation between the line and the label.

Jennifer_Parmeley_1-1785946382609.png


I've tried an arcade expression (two different ways) and it's duplicating my label text.

Jennifer_Parmeley_2-1785946580503.png

text($feature.SewerMainID) + "; " + $feature.PipeDiameter + 'in ' + Round($feature["Shape.STLength()"], 2) + "ft" + TextFormatting.NewLine + TextFormatting.NewLine
var tsewerid = text($feature.SewerMainID) + "; "
var len_2 = Round($feature["Shape.STLength()"], 2) + "ft"
`${tsewerid} ${$feature.PipeDiameter}in ${len_2}

`


Also tried adding a . in the second line - which probably won't be noticed by the user - but the entire text block is still being duplicated.

Jennifer_Parmeley_0-1785946254533.png

 

The allow overrun and repeat label settings don't change anything. Am I missing a simple setting for this?




0 Kudos
1 Reply
RussRoberts
Esri Notable Contributor

This is not exposed just in our style panel for labeling but you can modify the web map or layer JSON in ago-assistant and set the yoffset within the symbol under the labelinginfo.

0 Kudos