Earth Engine has introduced
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ui.Map.Layer.getOpacity
Stay organized with collections
Save and categorize content based on your preferences.
Returns the layer's opacity represented as a number between 0 and 1.
| Usage | Returns | Layer.getOpacity() | Number |
| Argument | Type | Details | this: ui.map.abstractlayer | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |
[null,null,["Last updated 2023-10-06 UTC."],[],["The `Layer.getOpacity()` method retrieves a layer's opacity. It returns a number between 0 and 1, representing the opacity level. This method is called on a `ui.Map.AbstractLayer` instance, indicated by the `this` argument. No arguments are passed into the function. The instance determines the layer for which opacity is being queried.\n"]]