GetScopeCorners()
Summary
Gets coordinates at the four corners of a given scope.
Syntax
corners = GetScopeCorners(scope scp)
| Argument | Contents |
|---|---|
| scp | The scope from which to get the corners |
Returns
An array of four coordinates, starting at the southwest corner, and going clockwise:
| Element | Type | Contents |
|---|---|---|
| 1 | Coord | Minimum longitude; minimum latitude |
| 2 | Coord | Minimum longitude; maximum latitude |
| 3 | Coord | Maximum longitude; maximum latitude |
| 4 | Coord | Maximum longitude; minimum latitude |
Notes
-
For a full list of scope-related GISDK functions, see Map Scales and Scopes.
Example
// change the scope to be at one of its corners
scp = GetMapScope("my map")
corners = GetScopeCorners(scp)
scp.center = corners[1]
SetMapScope("my map", scp)
See Also
| Function | Summary |
|---|---|
| GetScopeRect() | Gets an array of two coordinates that define the rectangle of a scope |
| Scope() | Creates a scope |
| GetMapCorners() | Gets coordinates at the four corners of a map |