ui.Map.Layer.getOpacity
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["The `getOpacity()` method retrieves the opacity level of a specific layer on a map."],["Opacity is represented as a numerical value within the range of 0 (fully transparent) to 1 (fully opaque)."],["This method applies to instances of the `ui.Map.AbstractLayer` class, which represents various layer types within the mapping system."]]],["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"]]