CenterMap()

Summary

Centers a map at a particular location.

Syntax

CenterMap(string map_name, coord center)

Argument Contents
map_name The map to be centered
center The coordinate of the center point

Notes

  • If map_name is null the current map is used.

Example

// Center a map where the user clicks...
CenterMap(null, ClickCoord())

Error Codes

Error Type Meaning
NotFound map_name does not exist

See Also

Function Summary
SetScale() Sets the scale of a map
ZoomMap() Changes the scale of a map
ZoomAndCenterMap() Changes the scale and center of a map