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.AbstractLayer

The ui.Map.AbstractLayer instance.

shownBoolean, optional

Whether the layer is shown.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!