ui.Map.DrawingTools.toFeatureCollection

Returns a feature collection in which each geometry in the drawing tools is a feature.

UsageReturns
DrawingTools.toFeatureCollection(indexProperty)FeatureCollection
ArgumentTypeDetails
this: ui.map.drawingtoolsui.Map.DrawingTools

The ui.Map.DrawingTools instance.

indexPropertyString

A property with this name will be assigned to every feature in the returned collection. The value of the property will be a number that corresponds to the index of the geometry layer to which the geometry belongs.