ui.Map.Layer.setOpacity
Sets the opacity of the layer.
Returns this map layer.
Usage | Returns |
---|
Layer.setOpacity(opacity) | ui.Map.AbstractLayer |
Argument | Type | Details |
---|
this: ui.map.abstractlayer | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |
opacity | Number, optional | The layer's opacity represented as a number between 0 and 1. |
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."],[[["Sets the opacity of the specified map layer, with a value between 0 and 1 representing transparent and opaque, respectively."],["Returns the `ui.Map.AbstractLayer` instance, allowing for method chaining."],["The `setOpacity()` method is called on a `ui.Map.AbstractLayer` object and optionally accepts a numerical opacity value."]]],[]]