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

The ui.Map.AbstractLayer instance.

opacityNumber, optional

The layer's opacity represented as a number between 0 and 1.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!