I created stacking labels in the Map Viewer, and now I want to create a Web App to share the map with my organization, but when I preview the map in the app, the labels are all on one line.
Here's the expression I used:
Solved! Go to Solution.
You're probably using a web map built with Map Viewer in Web AppBuilder. The Map Viewer is built with the ArcGIS Maps SDK for JavaScript 4.x, which supports TextFormatting.NewLine. Unfortunately, Web AppBuilder is build with the 3.x version of that API, which doesn't support TextFormatting.NewLine. If you open the web map in Map Viewer Classic (also built with 3.x), you'll see that the labels are also on one line.
I got it! Instant Apps, then Basic.