source:
trunk/workshop-routing-foss4g/web/GeoExt/examples/layercontainer.html
@
78
Revision 76, 1.5 KB checked in by djay, 13 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | <html> |
2 | <head> |
3 | <title>GeoExt Layer Tree</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="layercontainer.js"></script> |
13 | |
14 | </head> |
15 | <body> |
16 | <h1>Layer Tree Example</h1> |
17 | <p>This is example that shows how create a TreePanel with layers |
18 | from a map. GeoExt does not provide a LayerTree component. Instead, |
19 | to create a tree with nodes that represent layers, create a tree with |
20 | a LayerContainer at the root, or add LayerNodes directly. See also the |
21 | <a href="tree.html">tree</a> example for a more complex tree |
22 | configuration</p> |
23 | |
24 | <p>Note that the js is not minified so it is readable. |
25 | See <a href="layercontainer.js">layercontainer.js</a>.</p> |
26 | |
27 | <div style="position: relative;"> |
28 | <div id="capgrid"></div> |
29 | <div id="tree"></div> |
30 | <div id="mappanel"></div> |
31 | </div> |
32 | </body> |
33 | </html> |
Note: See TracBrowser
for help on using the repository browser.