| Maptitude GISDK Help |
Determines whether a layer is hidden in the current map due to autoscaling.
state = GetLayerAutoscale(string layer_name)
| Argument | Contents |
|---|---|
| layer_name | The name of the layer |
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 |
state = GetLayerAutoscale("Counties")
if state = "Off" then ShowMessage("Counties are currently autoscaled off.")
| Error Type | Meaning |
|---|---|
| NotFound | The specified layer does not exist |
| 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 |