ui.Map.FeatureViewLayer.getOpacity
Returns the layer's opacity represented as a number between 0 and 1.
Usage | Returns |
---|
FeatureViewLayer.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."],[[["This function retrieves the opacity of a layer and returns it as a numerical value ranging from 0 to 1."],["It is specifically designed for use with `FeatureViewLayer` objects."],["The method, named `getOpacity()`, takes one argument: the `ui.Map.AbstractLayer` instance, denoted by 'this', representing the target layer."]]],["The `getOpacity()` method of a `FeatureViewLayer` returns a numerical value representing the layer's opacity, ranging from 0 to 1. This method is called on an instance of `ui.Map.AbstractLayer` and does not take any arguments. The returned value is of type Number.\n"]]