Annonce : Tous les projets non commerciaux enregistrés pour utiliser Earth Engine avant le 15 avril 2025 doivent vérifier leur éligibilité non commerciale pour conserver leur accès à Earth Engine.
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
Layer.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).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/26 (UTC)."],[[["The `Layer.setShown()` method controls the visibility of a map layer, allowing you to show or hide it."],["This method, when called on a `ui.Map.AbstractLayer` instance with an optional boolean argument `shown`, returns the `ui.Map.AbstractLayer` itself, enabling method chaining."],["By default, if the `shown` argument is not provided, the layer's visibility is toggled to its opposite state."]]],["The `Layer.setShown()` method controls a map layer's visibility. It accepts an optional boolean argument, `shown`, to determine if the layer is displayed (true) or hidden (false). The method is applied to a `ui.Map.AbstractLayer` instance. Invoking this method modifies the layer's visibility and returns the modified `ui.Map.AbstractLayer` instance itself. The layer defaults to being shown if the `shown` argument is not set.\n"]]