This example shows a basic map viewer in a form.
The js is not minified so it is readable. See viewer-field.js.