Maptitude GISDK Help |
Sets the autoscale flag for a layer.
SetLayerScaleFlag(string layer_name, boolean scale_flag)
Argument |
Contents |
layer_name |
The name of the layer |
scale_flag |
If "True" (the default) turns autoscale on for the layer. If "False" turns autoscale off for the layer. |
SetLayerScaleFlag() can turn autoscaling on or off for a layer without clearing the autoscale settings from the layer.
Use GetLayerScaleFlag() to get the autoscale flag for a layer.
// 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")
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 autoscale flag for a layer |
|
Gets the scale of a map |
|
Sets the range of scales at which a layer displays (autoscale) |
|
Sets the scale of a map |
©2025 Caliper Corporation | www.caliper.com |