ui.Map.Layer
A layer generated from an Earth Engine object for display on a ui.Map.
Usage | Returns |
---|
ui.Map.Layer(eeObject, visParams, name, shown, opacity) | ui.Map.Layer |
Argument | Type | Details |
---|
eeObject | Collection|Feature|Image, optional | The object to add to the map. Defaults to an empty ee.Image. |
visParams | FeatureVisualizationParameters|ImageVisualizationParameters, optional | The visualization parameters. See ee.data.getMapId() docs. |
name | String, optional | The name of the layer. |
shown | Boolean, optional | Whether the layer is initially shown. Defaults to true. |
opacity | Number, optional | The layer's opacity represented as a number between 0 and 1. Defaults to 1. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Creates a map layer from an Earth Engine object (like Image, Feature, or Collection) for display on a ui.Map."],["Customizable with visualization parameters, name, visibility, and opacity."],["Defaults to an empty ee.Image if no Earth Engine object is provided."]]],["`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"]]