ui.Map.FeatureViewLayer.setShown
Sets the visibility of the layer.
Returns this map layer.
Usage | Returns |
---|
FeatureViewLayer.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."],[[["The `FeatureViewLayer.setShown()` method controls the visibility of the layer on the map."],["It accepts an optional boolean argument, `shown`, which determines whether the layer is visible or hidden."],["When called, it returns the `ui.Map.AbstractLayer` instance, allowing for method chaining."]]],["The `setShown` method controls a map layer's visibility. It accepts a boolean `shown` argument, determining if the layer is displayed (true) or hidden (false). This method is applied to a `ui.Map.AbstractLayer` instance and returns the same `ui.Map.AbstractLayer` object. The `shown` parameter is optional and represents the desired visibility state of the layer.\n"]]