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 couleur CSS des formes du calque.
Renvoie ce calque de carte.
Utilisation
Renvoie
GeometryLayer.setColor(color)
ui.Map.GeometryLayer
Argument
Type
Détails
ceci : ui.map.geometrylayer
ui.Map.GeometryLayer
Instance ui.Map.GeometryLayer.
color
Chaîne
Couleur du calque.
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)."],[[["Defines the color of shapes within a GeometryLayer on the map."],["The `setColor()` method accepts a color string as input and applies it to the layer's shapes."],["It returns the `ui.Map.GeometryLayer` instance, allowing for method chaining."]]],["The `GeometryLayer.setColor(color)` method modifies the color of shapes within a map layer. It accepts a `color` argument, which is a string representing the desired color. The method's primary action is to update the CSS color of the layer's shapes. Upon execution, it returns the `ui.Map.GeometryLayer` instance, allowing for method chaining. The input argument is `this`, referencing the specific `ui.Map.GeometryLayer` instance that the function is called upon.\n"]]