It would be useful to add a setGeometry method to the JavaScript API instead of or in addition to setGeopoint to enable setting point, line or polygon geometry to leverage the new Map question type.
See blog post https://community.esri.com/groups/survey123/blog/2020/03/05/introducing-the-survey123-web-app-javasc...
and Survey123 documentation:
What's new in Survey123—Survey123 for ArcGIS | Documentation : Update April 2, 2020
Thank you very much!