Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.CloudStorageLayer.setShown
Stay organized with collections
Save and categorize content based on your preferences.
Sets the visibility of the layer.
Returns this map layer.
Usage | Returns | CloudStorageLayer.setShown(shown) | ui.Map.AbstractLayer |
Argument | Type | Details | this: ui.map.abstractlayer | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |
shown | Boolean, optional | Whether the layer is shown. |
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\u003eThe \u003ccode\u003esetShown()\u003c/code\u003e method controls the visibility of a Cloud Storage layer on the map.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a boolean argument, \u003ccode\u003eshown\u003c/code\u003e, to indicate whether the layer should be visible or hidden.\u003c/p\u003e\n"],["\u003cp\u003eWhen called, this method returns the \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Map.CloudStorageLayer.setShown\n\n\u003cbr /\u003e\n\nSets the visibility of the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|-----------------------------------------|----------------------|\n| CloudStorageLayer.setShown`(`*shown*`)` | ui.Map.AbstractLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |\n| `shown` | Boolean, optional | Whether the layer is shown. |"]]