/** * Copyright (c) 2008-2010 The Open Source Geospatial Foundation * * Published under the BSD license. * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text * of the license. */ /** api: example[mappanel-window] * Map Panel (in a Window) * ------------------------- * Render a map panel in a Window. */ var mapPanel; Ext.onReady(function() { new Ext.Window({ title: "GeoExt MapPanel Window", height: 400, width: 600, layout: "fit", items: [{ xtype: "gx_mappanel", id: "mappanel", layers: [new OpenLayers.Layer.WMS( "Global Imagery", "http://maps.opengeo.org/geowebcache/service/wms", {layers: "bluemarble"} )], extent: "-5,35,15,55" }] }).show(); mapPanel = Ext.getCmp("mappanel"); });