操作方法
In ArcGIS Pro, multiline labels with concatenated text (string) can be created using the Arcade label expression. In this article's example, the Schools layer contains information on schools in Florida such as city, ZIP Code, and type of the school, as shown in the attribute table below.
This article describes the steps to create multiline labels displaying the CITY, ZIPCODE, and TYPE field values using the TextFormatting.NewLine constant and concatenate a text preceding each field value.
Note: The TextFormatting.NewLine constant inserts a line break between the labels.
The following is the expression used in this article's example.
'City:' + $feature.CITY + TextFormatting.NewLine + 'ZIP Code:' + $feature.ZIPCODE + TextFormatting.NewLine + 'Type:'+$feature.TYPE
The map below displays the distribution of schools in Florida, labeled with their respective city name, ZIP Code, and school type on separate lines.
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序