Maptitude GISDK Help |
Determine whether a layer is visible (displayed) in a map.
visibility = GetLayerVisibility(string map_bar_layer)
Argument |
Contents |
map_bar_layer |
The name of the map and layer |
The string "On" if the layer is visible in the map, or "Off" if the layer is not visible.
If map_bar_layer is null, GetLayerVisibility() returns information on the current layer in the current map.
If map_bar_layer is a layer name, GetLayerVisibility() returns information on the current map.
Even if a layer is visible, the autoscale settings for the layer may cause it not to be displayed at the current map scale.
// Make States visible but Counties hidden
states = GetLayerVisibility("States")
counties = GetLayerVisibility("Counties")
if states = "Off" then SetLayerVisibility("States", "On")
if counties = "On" then SetLayerVisibility("Counties", "Off")
Error Type |
Meaning |
NotFound |
The specified layer does not exist or is not in the specified map |
Function |
Summary |
Returns information on how features in a selection set are displayed on a map |
|
Determines whether a layer is hidden in the current map due to autoscaling |
|
Gets the range of scales at which a layer displays (autoscale) |
|
Gets the autoscale flag for a layer |
|
Sets the range of scales at which a layer displays (autoscale) |
|
Sets the autoscale flag for a layer |
|
Changes how features in a selection set are displayed on a map |
|
Sets whether a layer is visible (displayed) in a map |
©2025 Caliper Corporation | www.caliper.com |