create_layout
Creates a new page layout with a map frame, sized and margined for exporting to PDF or PNG.
Instructions
Create a new layout in the project with a map frame already added. After creation, call export_layout() to export it as PDF/PNG/etc.
Args: name: Layout name (default: "Layout") map_name: Map to put in the frame — uses active map if empty width: Page width (default: 11) height: Page height (default: 8.5) units: Page units — INCH, CENTIMETER, MILLIMETER, POINT (default: INCH) margin: Frame margin from page edge in page units (default: 0.5)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Layout | |
| units | No | INCH | |
| width | No | ||
| height | No | ||
| margin | No | ||
| map_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |