Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.Layer.getShown
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003e\u003ccode\u003eLayer.getShown()\u003c/code\u003e is a method that returns a boolean value indicating whether the specified layer is currently visible on the map.\u003c/p\u003e\n"],["\u003cp\u003eThe method is called on a \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e instance and requires no arguments.\u003c/p\u003e\n"]]],["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"],null,["# ui.Map.Layer.getShown\n\n\u003cbr /\u003e\n\nReturns whether the layer is shown.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------|---------|\n| Layer.getShown`()` | Boolean |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |"]]