This example shows the how to create a MapPanel with a map that has already been created. See mappanel-window.html for an example that creates the MapPanel without creating the map first.
The js is not minified so it is readable. See mappanel-div.js.