l_layer_isVisible.RdHidden or invisible layers are not rendered. This function queries whether a layer is visible/rendered or not.
l_layer_isVisible(widget, layer)
| widget | widget path or layer object of class |
|---|---|
| layer | layer id. If the widget argument is of class |
TRUE or FALSE depending whether the layer is visible or
not.
Visibile layers are rendered, invisible ones are not. If any
ancestor of a layer is set to be invisible then the layer is not rendered
either. The layer visibility flag can be checked with
l_layer_isVisible and the actual visibility (i.e. are all the
ancesters visibile too) can be checked with
l_layer_layerVisibility.
Note that layer visibility is not a state of the layer itself, instead is information that is part of the layer collection (i.e. its parent widget).
#> [1] TRUE#> [1] FALSE