add_layout_legend
Add a legend to an ArcGIS Pro layout, tied to a map frame. Specify position, size, title, and layers to control what the legend shows.
Instructions
Add a legend tied to a layout's map frame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in page units. | |
| y | No | Y position in page units. | |
| name | No | Element name. | |
| title | No | Legend title. | |
| width | No | Width in page units. | |
| height | No | Height in page units. | |
| layers | No | Only show these layers in the legend. | |
| style_item | No | Legend style item name. | |
| layout_name | Yes | Layout name. | |
| map_frame_name | No | Map frame to describe. | Map Frame |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |