source:
trunk/workshop-routing-foss4g/web/GeoExt/examples/vector-legend.html
@
76
Revision 76, 1.7 KB checked in by djay, 13 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | <html> |
2 | <head> |
3 | <title>GeoExt Vector Legend</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="vector-legend.js"></script> |
13 | <style> |
14 | #wrapper { |
15 | position: relative; |
16 | } |
17 | #mappanel { |
18 | position: absolute; |
19 | top: 0px; |
20 | left: 0px; |
21 | width: 512px; |
22 | height: 256px; |
23 | } |
24 | #legend { |
25 | position: absolute; |
26 | top: 0px; |
27 | left: 550px; |
28 | height: 256px; |
29 | width: 150px; |
30 | } |
31 | </style> |
32 | </head> |
33 | <body> |
34 | <h1>GeoExt.LegendPanel with Vector Layers</h1> |
35 | <p>This example shows the how to create a legend for vector layers. Zoom out to see how the legend is updated with changes in scale.<p> |
36 | <p>The js is not minified so it is readable. See <a href="vector-legend.js">vector-legend.js</a>.</p> |
37 | <div id="wrapper"> |
38 | <div id="mappanel"></div> |
39 | <div id="legend"></div> |
40 | </div> |
41 | </body> |
42 | </html> |
Note: See TracBrowser
for help on using the repository browser.