Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.

source: trunk/workshop-routing-foss4g/web/GeoExt/examples/mappanel-window.js @ 76

Revision 76, 900 bytes checked in by djay, 12 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
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
15var mapPanel;
16
17Ext.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.