ui.Map.Layer.getShown
Returns whether the layer is shown.
Usage | Returns |
---|
Layer.getShown() | Boolean |
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."],[[["`Layer.getShown()` is a method that returns a boolean value indicating whether the specified layer is currently visible on the map."],["The method is called on a `ui.Map.AbstractLayer` instance and requires no arguments."]]],["The function `Layer.getShown()` is used to determine the visibility of a layer. It takes a `ui.Map.AbstractLayer` instance as an argument, representing the layer in question. The function then returns a Boolean value, indicating whether the specified layer is currently shown (true) or hidden (false).\n"]]