# ui.Map.DrawingTools.toFeatureCollection

<br />

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

<br />

| Usage | Returns |
|---|---|
| `DrawingTools.toFeatureCollection(indexProperty)` | FeatureCollection |

| Argument | Type | Details |
|---|---|---|
| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |
| `indexProperty` | String | 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. |