l_layer_relabel.Rd
Layer labels are useful to identify layer in the layer inspector. The layer label can be initially set at layer creation with the label argument.
l_layer_relabel(widget, layer, label)
widget | widget path or layer object of class |
---|---|
layer | layer id. If the widget argument is of class |
label | new label of layer |
0 if success otherwise the function throws an error
Note that the layer label is not a state of the layer itself, instead is information that is part of the layer collection (i.e. its parent widget).
#> layer0 #> "A rectangle"#> layer0 #> "A relabelled rectangle"