source:
trunk/workshop-routing-foss4g/web/GeoExt/examples/wms-tree.html
@
79
| Revision 76, 1.4 KB checked in by djay, 14 years ago (diff) | |
|---|---|
|
|
| Rev | Line | |
|---|---|---|
| [76] | 1 | <html> |
| 2 | <head> | |
| 3 | <title>WMSCapabilitiesLoader Example</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 | ||
| 10 | <script src="http://www.openlayers.org/api/2.10/OpenLayers.js"></script> | |
| 11 | <script type="text/javascript" src="../script/GeoExt.js"></script> | |
| 12 | ||
| 13 | <script type="text/javascript" src="wms-tree.js"></script> | |
| 14 | ||
| 15 | </head> | |
| 16 | <body> | |
| 17 | <h1>Tree using a GeoExt.tree.WMSCapabilitiesLoader</h1> | |
| 18 | <div id="desc"> | |
| 19 | <p>This example shows how to use GeoExt.tree.WMSCapabilitiesLoader to populate a tree | |
| 20 | with the hierarchical structure of a WMS GetCapabilities response. The example | |
| 21 | also shows how to customize the loader's <tt>createNode</tt> method to add a checkbox | |
| 22 | with a <tt>checkchange</tt> listener that adds and removes layers to and from the map. | |
| 23 | </p> | |
| 24 | <p>See <a href="wms-tree.js">wms-tree.js</a> for the source code.</p> | |
| 25 | </div> | |
| 26 | </body> | |
| 27 | </html> |
Note: See TracBrowser
for help on using the repository browser.