If you want lines and polygons to be available as part of the record location for your app, 'Advanced Geometry' must be enabled in the location settings.
Enabling Advanced Geometry
In the App Designer, click the 'Location Settings' button in the right panel.
Check the box for 'Advanced Geometry Enabled (Lines and Polygons) in the dialog box.
Click save to close the Location Settings. Then click save in your app before leaving the app designer.
Users will now see additional tools when they create or edit records, allowing them to create geometries as part of the record's location data.
Please share your feedback here.