HOW TO

Label a layer with a rounded decimal value and convert meters to feet in ArcGIS Online

Last Published: January 18, 2024

Summary

Custom Arcade expressions are available when configuring labels in ArcGIS Online. The expressions can be used to change and display existing data in the layer's fields.

This article provides the steps to round a numeric value to a set number of decimal places and convert meters to feet via ArcGIS Online Map Viewer.

Procedure

  1. Open the map in Map Viewer. Click Layers, and select the layer for editing.
Selecting the layer for editing in the Layers tab in the Map Viewer Contents (dark) toolbar
  1. On the Settings (light) toolbar, click Labels.
The Settings (light) toolbar with the location of the Labels tab
  1. Add the label features in the map.
    1. In the Label features pane, turn on the Enable labels toggle button.
    2. Click Add label class.
The location of the Enable labels toggle icon and the Add label class icon in the Label features pane
  1. Click the Use expression button The Use expression icon beside the Label field selector drop-down menu to open the editor window.
The location of the Use expression icon in the Label features pane
  1. Specify the following Arcade expression in the Expression dialog box, and click OK.
Round(($feature["<field name>"]*<conversion rate>), <number of decimal places to round the number to>) + " " + "<International System of Units (SI)>"
Specifying the Arcade expression in the Map Viewer Expression dialog box

Article ID: 000026971

Software:
  • ArcGIS Online

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options