Select to view content in your preferred language

AGOL Error? Custom Labels for Feature Class Visualization - newline is not created

663
2
Jump to solution
05-12-2022 08:36 AM
Labels (2)
JacobLehan
Emerging Contributor

Long-time subscriber first time posting:

I'm looking to create a custom label for a new feature service but I think I'm running into an error with AGOL. I'd like the label to appear for the user with each attribute on a newline (name, ID #, acreage). When I test my expression it is correct but it doesn't display correctly on the map. This occurs while I'm attempting to change the label from the visualization tab.

$feature["Name"]
+TextFormatting.NewLine
+$feature["Parcel_ID"]
+TextFormatting.NewLine
+$feature["LOT_SIZE"] + " acres"

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

The visualization tab is still hooked into the "Classic" map, where line breaks in labels do not render.

Once you have the label configured, open your map in the new Map Viewer, and you should see the line breaks rendered.

- Josh Carlson
Kendall County GIS

View solution in original post

2 Replies
jcarlson
MVP Esteemed Contributor

The visualization tab is still hooked into the "Classic" map, where line breaks in labels do not render.

Once you have the label configured, open your map in the new Map Viewer, and you should see the line breaks rendered.

- Josh Carlson
Kendall County GIS
JacobLehan
Emerging Contributor

Thanks Josh! This worked exactly as you described. 

~ Jacob