# ui.Map.Layer

<br />

A layer generated from an Earth Engine object for display on a ui.Map.

<br />

| 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. |