source:
trunk/workshop-routing-foss4g/web/GeoExt/examples/feature-grid.html
@
76
Revision 76, 1.4 KB checked in by djay, 13 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 1 | <html> |
2 | <head> | |
3 | <title>GeoExt FeatureStore in an Ext Grid</title> | |
4 | ||
5 | <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.2.1/adapter/ext/ext-base.js"></script> | |
6 | <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.2.1/ext-all.js"></script> | |
7 | <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.2.1/resources/css/ext-all.css" /> | |
8 | <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.2.1/examples/shared/examples.css" /> | |
9 | <script src="http://www.openlayers.org/api/2.10/OpenLayers.js"></script> | |
10 | <script type="text/javascript" src="../script/GeoExt.js"></script> | |
11 | ||
12 | <script type="text/javascript" src="feature-grid.js"></script> | |
13 | ||
14 | </head> | |
15 | <body> | |
16 | <h1>Grid Panel configured with a GeoExt.data.FeatureStore</h1> | |
17 | ||
18 | <p>This example shows an Ext grid loaded with features read from a | |
19 | GeoJSON document (data/summits.json).</p> | |
20 | ||
21 | <p>Because the layer and the store are bound to each other, the | |
22 | features loaded into the store are automatically added to the layer. A | |
23 | GeoExt feature selection model is also used so that selecting rows in | |
24 | the grid selects features in the layer, and vice-versa.</p> | |
25 | ||
26 | <p>See <a href=feature-grid.js>feature-grid.js</a>.</p> | |
27 | ||
28 | <div id="mainpanel"></div> | |
29 | </body> | |
30 | </html> |
Note: See TracBrowser
for help on using the repository browser.