GetLayerScaleFlag()

Summary

Gets the autoscale flag for a layer.

Syntax

scale_flag = GetLayerScaleFlag(string layer_name)

Argument Contents
layer_name The name of the layer

Returns

The string "True" if autoscale is on for the layer; the string "False" if autoscale is off for the layer.

Notes

Example

// 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 Codes

Error Type Meaning
NotFound The specified layer does not exist

See Also

Function Summary
GetLayerAutoscale() Determines whether a layer is hidden in the current map due to autoscaling
GetLayerScale() Gets the range of scales at which a layer displays (autoscale)
GetScale() Gets the scale of a map
SetLayerScale() Sets the range of scales at which a layer displays (autoscale)
SetLayerScaleFlag() Sets the autoscale flag for a layer
SetScale() Sets the scale of a map