ui.Map.Layer
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Calque généré à partir d'un objet Earth Engine pour l'affichage sur un ui.Map.
Utilisation | Renvoie |
---|
ui.Map.Layer(eeObject, visParams, name, shown, opacity) | ui.Map.Layer |
Argument | Type | Détails |
---|
eeObject | Collection|Fonctionnalité|Image, facultatif | Objet à ajouter à la carte. La valeur par défaut est une image ee.Image vide. |
visParams | FeatureVisualizationParameters|ImageVisualizationParameters, facultatif | Paramètres de visualisation. Consultez la documentation ee.data.getMapId(). |
name | Chaîne, facultative | Nom du calque. |
shown | Booléen, facultatif | Indique si le calque est affiché au départ. La valeur par défaut est "true". |
opacity | Nombre, facultatif | Opacité du calque, représentée par une valeur comprise entre 0 et 1. La valeur par défaut est 1. |
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\u003eCreates a map layer from an Earth Engine object (like Image, Feature, or Collection) for display on a ui.Map.\u003c/p\u003e\n"],["\u003cp\u003eCustomizable with visualization parameters, name, visibility, and opacity.\u003c/p\u003e\n"],["\u003cp\u003eDefaults to an empty ee.Image if no Earth Engine object is provided.\u003c/p\u003e\n"]]],["`ui.Map.Layer` creates a display layer from an Earth Engine object. It takes an `eeObject` (Collection, Feature, or Image), optional visualization parameters (`visParams`), a layer `name`, a `shown` boolean (defaulting to true), and an `opacity` number between 0 and 1 (defaulting to 1). The `eeObject` defaults to an empty image. It returns a `ui.Map.Layer` object which is added to the map.\n"],null,["# ui.Map.Layer\n\n\u003cbr /\u003e\n\nA layer generated from an Earth Engine object for display on a ui.Map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------|--------------|\n| `ui.Map.Layer(`*eeObject* `, `*visParams* `, `*name* `, `*shown* `, `*opacity*`)` | ui.Map.Layer |\n\n| Argument | Type | Details |\n|-------------|------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| `eeObject` | Collection\\|Feature\\|Image, optional | The object to add to the map. Defaults to an empty ee.Image. |\n| `visParams` | FeatureVisualizationParameters\\|ImageVisualizationParameters, optional | The visualization parameters. See ee.data.getMapId() docs. |\n| `name` | String, optional | The name of the layer. |\n| `shown` | Boolean, optional | Whether the layer is initially shown. Defaults to true. |\n| `opacity` | Number, optional | The layer's opacity represented as a number between 0 and 1. Defaults to 1. |"]]