Maptitude GISDK Help

GetLayerAutoscale()

Summary

Determines whether a layer is hidden in the current map due to autoscaling.

 

Syntax

state = GetLayerAutoscale(string layer_name)

 

Argument

Contents

layer_name

The name of the layer

 

Returns

A string specifying the state of the layer:

 

Value

Meaning

None

No autoscaling is set for the layer

On

Autoscaling is set for the layer and the layer is visible at the scale of the current map

Off

Autoscaling is set for the layer and the layer is not visible at the scale of the current map

 

Example

state = GetLayerAutoscale("Counties")

if state = "Off" then ShowMessage("Counties are currently autoscaled off.")

 

Error Codes

Error Type

Meaning

NotFound

The specified layer does not exist

 

See Also

Function

Summary

GetLayerScale()

Gets the range of scales at which a layer displays (autoscale)

GetLayerScaleFlag()

Gets the autoscale flag for a layer

GetSetScale()

Gets the range of scales at which a selection set 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

SetSetScale()

Sets the range of scales at which a selection set displays (autoscale)

SetScale()

Sets the scale of a map

 

 

©2025 Caliper Corporation www.caliper.com