Maptitude GISDK Help

SetLayerScale()

Summary

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

 

Syntax

SetLayerScale(string layer_name, real min_scale, real max_scale)

 

Argument

Contents

layer_name

The name of the layer

min_scale

The minimum scale at which the layer displays

max_scale

The maximum scale at which the layer displays

 

Notes

Example

// Set manhole cover points to display only between 1:1000 and 1:200,000

SetLayerScale("Manholes", 1000, 200000)

 

// Set zones to display at any scale

SetLayerScale("Zones", null, null)

 

Error Codes

Error Type

Meaning

NotFound

The specified layer does not exist or is not in the current map

 

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

GetSetScale()

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

GetScale()

Gets the scale of a map

SetLayerScaleFlag()

Sets the autoscale flag for a layer

SetLayerVisibility()

Set whether a layer is visible (displayed) in a map

SetScale()

Sets the scale of a map

SetSetScale()

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

 

 

©2025 Caliper Corporation www.caliper.com