Sample code to create a panel with a new map:
var mapPanel = new GeoExt.MapPanel({
border: false,
renderTo: "div-id",
map: {
maxExtent: new OpenLayers.Bounds(-90, -45, 90, 45)
}
});
Sample code to create a map panel with a bottom toolbar in a Window:
var win = new Ext.Window({
title: "My Map",
items: [{
xtype: "gx_mappanel",
bbar: new Ext.Toolbar()
}]
});
Configuration properties in addition to those listed for Ext.Panel.
Public properties in addition to those listed for Ext.Panel.