set_layer_labeling
Turn layer labels on or off and set the label expression, font, halo, and SQL filter in an ArcGIS Pro map.
Instructions
Turn labels on or off and set the expression, font and halo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | Bold text. | |
| where | No | Only label features matching this SQL clause. | |
| italic | No | Italic text. | |
| enabled | No | Show labels. | |
| map_name | No | Map to act on; defaults to the active map. | |
| font_size | No | Font size in points. | |
| halo_size | No | Halo size in points. | |
| expression | No | Label expression, Arcade by default, e.g. "$feature.NAME". | |
| font_color | No | Font colour as [r, g, b]. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| font_family | No | Font name, e.g. "Tahoma". | |
| expression_engine | No | Arcade, Python or VBScript. | Arcade |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |