Maptitude GISDK Help |
Gets the scale of a map.
scale = GetScale(string map_name)
Argument |
Contents |
map_name |
The map for which the scale is required |
A real number that is denominator of the map scale expressed as a ratio. For example, if the map scale is 1:2,000,000, GetScale() returns 2,000,000.
curr_scl = GetScale()
new_scl = curr_scl / 2.0
SetScale(new_scl)
SetScale(GetScale() / 2.0)
Error Type |
Meaning |
NotFound |
The specified map name does not exist |
Function |
Summary |
Determines whether a layer is hidden in the current map due to autoscaling |
|
Gets the range of scales at which a layer displays (autoscale) |
|
Gets the autoscale flag for a layer |
|
Gets the range of scales at which a selection set displays (autoscale) |
|
Sets the range of scales at which a layer displays (autoscale) |
|
Sets the autoscale flag for a layer |
|
Sets the scale of a map |
|
Sets the range of scales at which a selection set displays (autoscale) |
©2025 Caliper Corporation | www.caliper.com |