set_layer_visibility
Toggle map layer visibility in ArcGIS Pro. Show or hide one layer, multiple layers, or all layers to control what appears on the map.
Instructions
Show or hide one layer, several layers, or every layer in the map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| visible | Yes | True to show, False to hide. | |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | No | Single layer to change. | |
| layer_names | No | Several layers to change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |