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

Returns the new geometry layer.

DrawingTools.addLayer(geometries, name, color, shown, locked)ui.Map.GeometryLayer
this: ui.map.drawingtoolsui.Map.DrawingToolsThe ui.Map.DrawingTools instance.
geometriesListThe geometries with which to initialize the layer.
nameString, optionalThe name of the layer.
colorString, optionalThe CSS color of shapes in the layer, for instance

"white" or "#FFFFFF".

shownBoolean, optionalWhether to show the shapes in the layer. Defaults to true.
lockedBoolean, optionalWhether to lock shape editing in the layer. Defaults to false.