ui.Map.Layer.setOpacity

Sets the opacity of the layer.

Returns this map layer.

UsageReturns
Layer.setOpacity(opacity)ui.Map.AbstractLayer
ArgumentTypeDetails
this: ui.map.abstractlayerui.Map.AbstractLayerThe ui.Map.AbstractLayer instance.
opacityNumber, optionalThe layer's opacity represented as a number between 0 and 1.