| Maptitude GISDK Help |
Changes the scale of a map.
ZoomMap(string map_name, real fraction)
| Argument | Contents |
|---|---|
| map_name | The map whose scale is changed |
| fraction | The multiplier by which the width and height should be changed |
If map_name is null the current map is used.
ZoomMap(null, 2.0) // Zoom out, or double the width and height
ZoomMap("my map", 0.5) // Zoom in, or cut the width and height in half
| Error Type | Meaning |
|---|---|
| NotFound | The specified map does not exist |
| Function | Summary |
|---|---|
| CenterMap() | Centers a map at a particular location |
| SetScale() | Sets the scale of a map |
| ZoomAndCenterMap() | Changes the scale and center of a map |
| SetMapScope() | Sets the area covered by a map |
| ©2025 Caliper Corporation | www.caliper.com |