HOW TO

Beschriften eines Layers mit einem gerundeten Dezimalwert und Konvertieren von Metern in Fuß in ArcGIS Online

Last Published: January 18, 2024

Zusammenfassung

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.

Vorgehensweise

  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

Artikel-ID: 000026971

Benachrichtigungen erhalten und Lösungen für neue oder häufige Probleme finden

Unser neuer KI-Chatbot stellt zusammengefasste Antworten und Videolösungen für Sie bereit.

Esri Support App herunterladen

Zugehörige Informationen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln