This example shows a basic fullscreen map viewer.
The js is not minified so it is readable. See viewer.js.