Maptitude GISDK Help |
Gets the autoscale flag for a layer.
scale_flag = GetLayerScaleFlag(string layer_name)
Argument |
Contents |
layer_name |
The name of the layer |
The string "True" if autoscale is on for the layer; the string "False" if autoscale is off for the layer.
Use SetLayerScaleFlag() to turn autoscale for a layer off or on.
// Set manhole cover points to display only between 1:1000 and 1:200,000
SetLayerScale("Manholes", 1000, 200000)
// Turn off the autoscale so the layer displays at all scales
SetLayerScaleFlag("Manholes", "False")
// Show the autoscale flag for the layer
scale_flag = GetLayerScaleFlag("Manholes")
ShowArray({scale_flag})
Error Type |
Meaning |
NotFound |
The specified layer 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 scale of a map |
|
Sets the range of scales at which a layer displays (autoscale) |
|
Sets the autoscale flag for a layer |
|
Sets the scale of a map |
©2025 Caliper Corporation | www.caliper.com |