Maptitude GISDK Help

GetScopeRect()

Summary

Gets an array of two coordinates that define the rectangle of a scope.

 

Syntax

coords = GetScopeRect(scope scp)

 

Argument Contents
scp The scope from which to get the rectangle

 

Returns

An array of two coordinates:

 

Element Type Contents
1 Coord Minimum longitude; minimum latitude
2 Coord Maximum longitude; maximum latitude

 

Notes

Example

// change the scope to be at one of its corners

scp = GetMapScope("my map")

coords = GetScopeRect(scp)

scp.center = coords[1]

SetMapScope("my map", scp)

 

See Also

Function Summary
GetScopeCorners() Gets coordinates at the four corners of a given scope
Scope() Creates a scope

 

 

©2025 Caliper Corporation www.caliper.com