This example shows a basic map viewer with a LayerManager.
The js is not minified so it is readable. See viewer-layermanager.js.