Get or set a layer's visibility in the map canvas.

mapLayer.visible(layer, ...)

mapLayer.setVisible(layer, value, ...)

mapLayer.visible(layer, ...) <- value

Arguments

layer

layer (or ID of the layer) which to set (in)visible

...

low-level parameters (such as host and auth) to be passed on to qgisremote()

value

logical: the visibility status to set for the given layer