ui.Map.Layer.setShown

Sets the visibility of the layer.

Returns this map layer.

UsageReturns
Layer.setShown(shown)ui.Map.AbstractLayer
ArgumentTypeDetails
this: ui.map.abstractlayerui.Map.AbstractLayerThe ui.Map.AbstractLayer instance.
shownBoolean, optionalWhether the layer is shown.