Anuncio: Todos los proyectos no comerciales registrados para usar Earth Engine antes del
15 de abril de 2025 deben
verificar su elegibilidad no comercial para mantener el acceso a Earth Engine.
ui.Map.Layer
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Es una capa generada a partir de un objeto de Earth Engine para mostrarse en un objeto ui.Map.
Uso | Muestra |
---|
ui.Map.Layer(eeObject, visParams, name, shown, opacity) | ui.Map.Layer |
Argumento | Tipo | Detalles |
---|
eeObject | Colección|Función|Imagen, opcional | Es el objeto que se agregará al mapa. El valor predeterminado es un objeto ee.Image vacío. |
visParams | FeatureVisualizationParameters|ImageVisualizationParameters, opcional | Son los parámetros de visualización. Consulta la documentación de ee.data.getMapId(). |
name | Cadena, opcional | Es el nombre de la capa. |
shown | Booleano, opcional | Indica si la capa se muestra inicialmente. El valor predeterminado es verdadero. |
opacity | Número, opcional | Opacidad de la capa, representada como un número entre 0 y 1. El valor predeterminado es 1. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 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. |"]]