ui.Map.FeatureViewLayer.setShown
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Définit la visibilité du calque.
Renvoie ce calque de carte.
Utilisation | Renvoie |
---|
FeatureViewLayer.setShown(shown) | ui.Map.AbstractLayer |
Argument | Type | Détails |
---|
ceci : ui.map.abstractlayer | ui.Map.AbstractLayer | Instance ui.Map.AbstractLayer. |
shown | Booléen, facultatif | Indique si le calque est affiché. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eFeatureViewLayer.setShown()\u003c/code\u003e method controls the visibility of the layer on the map.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts an optional boolean argument, \u003ccode\u003eshown\u003c/code\u003e, which determines whether the layer is visible or hidden.\u003c/p\u003e\n"],["\u003cp\u003eWhen called, it returns the \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],["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"],null,["# ui.Map.FeatureViewLayer.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| FeatureViewLayer.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. |"]]