Maptitude GISDK Help

SetLayerScaleFlag()

Summary

Sets the autoscale flag for a layer.

 

Syntax

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.

 

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")

 

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)

GetLayerScaleFlag()

Gets the autoscale flag for a layer

GetScale()

Gets the scale of a map

SetLayerScale()

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

SetScale()

Sets the scale of a map

 

 

©2025 Caliper Corporation www.caliper.com