English

FAQ: Is it possible to create multiline labels in ArcGIS Online?

Question

Is it possible to create multiline labels in ArcGIS Online?

Answer

No, it is not possible to create multiline labels in ArcGIS Online. The Create Labels option in ArcGIS Online does not have the multiline labels functionality. It is also not possible to create multiline labels in ArcGIS Online from an Arcade expression because the constant TextFormatting.NewLine expression is not supported. For more information, refer to ArcGIS Online: Labeling considerations and ArcGIS Arcade: Constants.

As a workaround, use two-layer labeling with top and bottom alignments for the desired feature layer in ArcGIS Online.

Note:
These steps are only applicable to point feature layers and not polygon feature layers. For line feature layers, there are only three types of alignments.
  1. In ArcGIS Online, open the desired feature layer in Map Viewer.
  2. In the Contents pane, hover the pointer over the layer, and click More options > Create Labels.
Image showing the More options and Create Labels option
  1. In the Labels Features pane, for the Text box, select the first desired label to display on the map, and select the alignment. Click OK.
Note:
Verify the Label Features check box is checked.
Image of the Label features pane
  1. Add the same feature layer to Map Viewer. For more detailed steps, refer to ArcGIS Online: Add layers to maps.
Note:
The second feature layer acts as a duplicate of the first feature layer added to the web map.
  1. In the Contents pane, hover the pointer over the duplicate feature layer, and click More options > Create Labels.
  2. In the Labels Features pane, for the Text box, select the second desired label to display on the map, and select the alignment. Click OK.
Image of the Label Features pane

The image below shows the multiline labels for the point feature layer.

Image of the multiline labels for point feature layer

Related Information

Last Published: 6/1/2020

Article ID: 000019957