map_zoom_to_extent
Zoom the QGIS map canvas to a specified bounding box. Provide bbox as [xmin, ymin, xmax, ymax] and optionally set CRS for coordinate precision.
Instructions
Zoom the map canvas to a bounding box.
bbox is [xmin, ymin, xmax, ymax]. crs defaults to the canvas CRS if
omitted - pass it (e.g. "EPSG:4326") when the bbox coordinates are in a
different CRS. Returns the resulting canvas extent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crs | No | ||
| bbox | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||