The location capture widget can and will return a lonlat string with a return callback, so you can do something like:
//data is the lonlat string when complete the drawing in the widget
The location capture widget also provides a way to put the lonlat string in a new widget
lonLat:"151.503462,-33.251348 150.558638,-33.039778 149.767623,-34.137978 150.844283,-34.754050 151.283736,-33.937689 151.503462,-33.251348"
To achieve something like http://researchdata.ands.org.au/theatreworks-archive
, you will need the lonlat string and knowledge on how to use the google map API, so basically we draw the lonlat string using polygons. You can view the open sourced code here in the drawMap() function https://github.com/au-research/ANDS-Registry-Core/blob/master/applications/portal/view/assets/js/view.js
Try that and let me know if you need any help