zoom_to_layer
Set the map camera to the extent of a specified layer to focus on a study area, boundary, or analysis result. Saves the project when requested.
Instructions
Set the selected map's default camera extent to match a named layer's data extent. Use this before exporting a map view or reopening the .aprx so the map focuses on a study area, boundary, analysis result, or target dataset. Reads the layer data source extent, updates the map defaultCamera, and saves the project when save=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||