ui.Map.Layer.setEeObject

Sets the layer's ee.Object.

Returns this map layer.

UsageReturns
Layer.setEeObject(eeObject)ui.Map.Layer
ArgumentTypeDetails
this: ui.map.layerui.Map.LayerThe ui.Map.Layer instance.
eeObjectCollection|Feature|Image, optionalThe object to add to the map. Defaults to an empty ee.Image.