source:
trunk/workshop-routing-foss4g/web/GeoExt/examples/mappanel-window.js
@
78
Revision 76, 900 bytes checked in by djay, 13 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | /** |
2 | * Copyright (c) 2008-2010 The Open Source Geospatial Foundation |
3 | * |
4 | * Published under the BSD license. |
5 | * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text |
6 | * of the license. |
7 | */ |
8 | |
9 | /** api: example[mappanel-window] |
10 | * Map Panel (in a Window) |
11 | * ------------------------- |
12 | * Render a map panel in a Window. |
13 | */ |
14 | |
15 | var mapPanel; |
16 | |
17 | Ext.onReady(function() { |
18 | new Ext.Window({ |
19 | title: "GeoExt MapPanel Window", |
20 | height: 400, |
21 | width: 600, |
22 | layout: "fit", |
23 | items: [{ |
24 | xtype: "gx_mappanel", |
25 | id: "mappanel", |
26 | layers: [new OpenLayers.Layer.WMS( |
27 | "Global Imagery", |
28 | "http://maps.opengeo.org/geowebcache/service/wms", |
29 | {layers: "bluemarble"} |
30 | )], |
31 | extent: "-5,35,15,55" |
32 | }] |
33 | }).show(); |
34 | |
35 | mapPanel = Ext.getCmp("mappanel"); |
36 | }); |
Note: See TracBrowser
for help on using the repository browser.