GeoExt.MapPanel with an Existing OpenLayers.Map

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 CookieProvider. The MapPanel being a stateful component, if you reload the page the map should be at the same location as previously. Also the getState and 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.