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.
This example makes use of a
being a stateful component, if you reload the page the map should be
at the same location as previously. Also the
applyState methods are overloaded so the size of the map
panel is also restored when refreshing the page.
The js is not minified so it is readable. See mappanel-div.js.