ui.Map.DrawingTools.addLayer

Adds a given list of ee.Geometry objects to the drawing tools as a geometry layer.

Returns the new geometry layer.

UsageReturns
DrawingTools.addLayer(geometries, name, color, shown, locked)ui.Map.GeometryLayer
ArgumentTypeDetails
this: ui.map.drawingtoolsui.Map.DrawingTools

The ui.Map.DrawingTools instance.

geometriesList

The geometries with which to initialize the layer.

nameString, optional

The name of the layer.

colorString, optional

The CSS color of shapes in the layer, for instance

"white" or "#FFFFFF".

shownBoolean, optional

Whether to show the shapes in the layer. Defaults to true.

lockedBoolean, optional

Whether to lock shape editing in the layer. Defaults to false.