# ui.Map.Layer.setEeObject

<br />

Sets the layer's ee.Object.

<br />

Returns this map layer.

| Usage | Returns |
|---|---|
| `Layer.setEeObject(*eeObject*)` | ui.Map.Layer |

| Argument | Type | Details |
|---|---|---|
| this: `ui.map.layer` | ui.Map.Layer | The ui.Map.Layer instance. |
| `eeObject` | Collection\|Feature\|Image, optional | The object to add to the map. Defaults to an empty ee.Image. |