| Maptitude GISDK Help |
Changes the layout scale by a factor.
ZoomLayout(string layout_name, real factor)
| Argument | Contents |
|---|---|
| layout_name | The name of the layout, or null for the current layout |
| fraction | The factor by which to zoom |
Use ZoomLayout() with ClickCoord() to zoom in or out on a layout by a fixed ratio.
// This macro doubles the layout scale at a point where the user clicks
c = ClickCoord()
CenterLayout(, c)
ZoomLayout(, 2.0)
| Error Type | Meaning |
|---|---|
| NotFound | There is no layout of the given name, or layout_name is null and there is no layout window |
| Function | Summary |
|---|---|
| CenterLayout() | Centers a layout at a specific point |
| SetVisibleRectangle() | Controls the portion of a layout that is displayed in a layout window. |
| ©2025 Caliper Corporation | www.caliper.com |