Stacked Labels in a web map app

1047
6
02-19-2020 08:21 AM
DouglasWilder
New Contributor II

I enjoyed your post titled "New Labels in ArcGIS Online's Map Viewer Beta" and am particularly interested in the stacked labels bit. My labels are now wrapping in my web map but not when the web map is viewed within a web map app.  I'm using the TextFormatting.Newline. Any ideas or fixes for this?  

Many thanks,

Doug Wilder

U.S. National Park Service

0 Kudos
6 Replies
RickeyFight
MVP Regular Contributor

Douglas Wilder

Can you provide a link to the post you are talking about?

Can you also provide screen shots to help others get a better idea of what you are looking at?

Thanks

Edit: Jennifer Bell

0 Kudos
DouglasWilder
New Contributor II

https://community.esri.com/ideas/12902-add-support-for-arcgis-online-stacked-labels

0 Kudos
KenBuja
MVP Esteemed Contributor

This could be because the Web AppBuilder still uses JS 3.x. Have you tried viewing the web map in the Experience Builder (which uses 4.x)?

0 Kudos
DouglasWilder
New Contributor II

I have not tried that. How would I do that? 

0 Kudos
DouglasWilder
New Contributor II

The labels for region names such as "Region 5 Missouri Basin 25 Units" should be stacked. Here's how I built the expression:

"Region " + $feature["REG_NUM"] + TextFormatting.NewLine + $feature["REG_NAME"] + TextFormatting.NewLine + $feature["Num_Units"] + " Units"

0 Kudos