ui.Map.Layer

A layer generated from an Earth Engine object for display on a ui.Map.
UsageReturns
ui.Map.Layer(eeObject, visParams, name, shown, opacity)ui.Map.Layer
ArgumentTypeDetails
eeObjectCollection|Feature|Image, optionalThe object to add to the map. Defaults to an empty ee.Image.
visParamsFeatureVisualizationParameters|ImageVisualizationParameters, optionalThe visualization parameters. See ee.data.getMapId() docs.
nameString, optionalThe name of the layer.
shownBoolean, optionalWhether the layer is initially shown. Defaults to true.
opacityNumber, optionalThe layer's opacity represented as a number between 0 and 1. Defaults to 1.