Hey all,
I am using this code below to format labels in ArcGIS Pro to label cities with their Traditional/Native names (bold and italicized) with Common names appearing below. Formatting looks great in ArcPro but sharing the layer to online the formatting gets displayed as text. Is there a way in ArcGIS Online to preserve the text formatting?
Working Aracde (in ArcPro):
var nativeName = $feature.Native_Name;
var englishName = $feature.NAME;
return TextFormatting.NewLine + "<BOL><ITA>" + nativeName + "</ITA></BOL>" + TextFormatting.NewLine + englishName;
Label (ArcPro): Traditional Name
Common Name
Label (AGOL): <BOL><ITA>Traditional Name </ITA></BOL>
Common Name
Solved! Go to Solution.
Unfortunately, you can't use formatting tags in Arcade for labels on AGOL. What you would have to do is create a separate label class for each type of name. In each label class use the Label style to set the font and Offset Y to provide the proper spacing
Unfortunately, you can't use formatting tags in Arcade for labels on AGOL. What you would have to do is create a separate label class for each type of name. In each label class use the Label style to set the font and Offset Y to provide the proper spacing