ui.Map.CloudStorageLayer.getOpacity
Returns the layer's opacity represented as a number between 0 and 1.
Usage | Returns |
---|
CloudStorageLayer.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 returns the Cloud Storage layer's opacity as a number between 0 and 1."],["This method can be used with the `ui.map.abstractlayer` instance to retrieve its opacity level."]]],["The `CloudStorageLayer.getOpacity()` method retrieves the opacity of a layer. It returns a numerical value between 0 and 1, representing the layer's opacity. The method operates on a `ui.Map.AbstractLayer` instance, which is the target layer whose opacity is being queried. No arguments are passed besides the target instance itself.\n"]]