source: cowsclient/cowsclient/templates/wmsviz.html @ 5341

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cowsclient/cowsclient/templates/wmsviz.html@5341
Revision 5341, 7.3 KB checked in by domlowe, 13 years ago (diff)

fixed WCS download internet explorer errors

Line 
1<html xmlns:py="http://genshi.edgewall.org/" 
2      xmlns="http://www.w3.org/1999/xhtml"
3          xmlns:xi="http://www.w3.org/2001/XInclude">   
4<xi:include href="utils.html" />
5<head>
6<link type="text/css" rel="stylesheet" href="$g.server/layout/ddc_style.css"/>
7<link type="text/css" rel="stylesheet" href="$g.server/layout/ddc_vis.css"/>
8<link type="text/css" rel="stylesheet" href="$g.server/layout/ndg2.css"/>
9<!-- <script type='text/javascript'
10        src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script> -->
11
12
13<!-- BEGIN: Yahoo Interface Library -->
14<link type="text/css" rel="stylesheet"
15        href="$g.server/js/yui/treeview/assets/skins/sam/treeview.css"/> 
16         
17<!-- Dependency source files --> 
18<script src = "$g.server/js/yui/yahoo/yahoo-min.js" ></script> 
19<script src = "$g.server/js/yui/event/event-min.js" ></script> 
20 
21<!-- TreeView source file --> 
22<script src = "$g.server/js/yui/treeview/treeview-min.js" ></script> 
23
24<!-- TreeView Menu Style -->
25<link rel="stylesheet" type="text/css" href="$g.server/js/yui/treeview/assets/treeview-menu.css"/> 
26
27<link rel="stylesheet" type="text/css" href="$g.server/js/yui/fonts/fonts-min.css?_yuiversion=2.5.0" />
28<script type="text/javascript" src="$g.server/js/yui/utilities/utilities.js?_yuiversion=2.5.0"></script>
29
30<script type="text/javascript" src="$g.server/js/yui/yahoo-dom-event/yahoo-dom-event.js" ></script> 
31<script type="text/javascript" src="$g.server/js/yui/dragdrop/dragdrop-min.js" ></script>
32<script type="text/javascript" src="$g.server/js/toggleDiv.js" ></script>
33<link type="text/css" rel="stylesheet" href="$g.server/layout/drag_drop_style.css"/>
34<script src = "$g.server/js/dragAndDrop.js" ></script> 
35
36<!-- END: Yahoo Interface Library -->
37
38<!-- BEGIN: WMSC library -->
39<link type="text/css" rel="stylesheet" href="$g.server/layout/control.css"/>
40
41<script src="$g.server/js/wmsc.js"></script>
42<script src="$g.server/js/prototype.js"></script>
43<script src="http://www.openlayers.org/api/2.4/OpenLayers.js"></script>
44<script src="$g.server/js/openlayers-x.js"/>
45<script src="$g.server/js/dimensionControl.js"/>
46<script src="$g.server/js/mapControl.js"/>
47<script src="$g.server/js/layerControl.js"></script>
48<script src="$g.server/js/capabilities.js"></script>
49<script src="$g.server/js/wcs.js"></script>
50<!-- END: WMSC library -->
51
52<script type="text/javascript">
53
54// Hook into application for debugging.   
55var app = null;
56var control = null;
57
58<?python
59from pylons import session 
60?>     
61       
62function init() 
63{
64    var coordControl = new WMSC.DimControl('dims');
65    var layerControl = new WMSC.VisAppLayers('layerTree', 'layerLeaves', coordControl); 
66        <for py:for="i in session['viewItems']" class="dataset" py:strip="True">
67        <span py:if="i.wmcURL" py:strip="True">
68                layerControl.addWebMapContext("${i.wmcURL}");
69            </span>
70    </for>
71    app = new WMSC.VisApp('map', 10, 640, true);
72    app.addDimensionControl(coordControl);
73    app.addLayerControl(layerControl); 
74        if (document.getElementById('wcsdownload') == null) {
75                createDownloadButton(wcsdownloadDiv);   
76                }       
77}
78
79function cleanup() 
80{
81    app.destroy();
82}
83       
84<!--! Help Icons -->
85<span py:def="helpIcon(value, elementType = 'div')">
86       <span>
87          <a href="javascript:;" title="Toggle help" onclick="toggleDiv(1,'$value','shown','hidden','$elementType'); return false;">
88          <img src="$g.helpIcon" alt="Toggle help" class="helpicon"/></a>
89       </span>
90</span>
91       
92
93</script>
94
95<!--<replace py:replace="pagehead()"/> -->
96</head>
97
98<body onload="init()" onunload="cleanup()">
99        <div id="entirepage">
100    <!--<div py:replace="header()"/>  -->
101        <!-- <div py:replace="PageTabs('View')"/> -->
102    <!-- <div py:replace="searchOneLine()"/> -->
103
104<div id="visBody">
105<table>
106  <tr>
107    <td align="center">
108        <div id="mapBox">
109                        <div id="map"></div>
110                        <div id="legend"></div>
111                </div>
112    </td>
113    <td valign="top">
114      <div class="optDiv">
115        <b>Selection Description</b>
116                <div id="description">
117                  Complete your selection below to view  <span py:replace="helpIcon('coord_help', 'div')"/> 
118                </div>
119      </div>
120               
121                <div id="coord_help" class="hidden">
122        <div class="helptxt">
123                                Specifying coordinate dimensions will select a region on the map;
124                                when this is appropriately sized, the map will automatically zoom to this region.<br/>
125                                'Reset selection' will return the map to its full, global size.<br/>
126                                Some map layers have additional dimensions, e.g. 'time';
127                                if these are available, they will also be displayed in this panel for selection.<br/>
128                                NB, the dimensions displayed are those relating to the selected dataset
129                                in the left hand tree view - however they will also be applied, where appropriate, to all selected map layers.
130        </div>
131      </div>   
132               
133      <div class="optDiv">
134        <b>Domain</b>
135                        <div id="dims"></div>
136      </div>
137        <div class="wcsDiv">
138        <b>Download Data for this Selection</b>
139                        <div id="wcsdownloadDiv"></div>
140      </div>
141    <div class="hiddenDiv">
142        <form id="figureForm">
143          <b>Plot type</b><br/>
144          <input type="radio" name="figType" value="colour" checked="1"/>Colour<br/>
145          <input type="radio" name="figType" value="bw"/>B/W Contour<br/>
146          <b>Format</b><br/>
147          <select name="figFormat">
148            <option value="image/png" name="figFormat" selected="1"> PNG </option>
149            <option value="image/jpeg" name="figFormat"> JPEG </option>
150            <option value="application/postscript" name="figFormat"> EPS </option>
151            <option value="image/svg+xml" name="figFormat"> SVG </option>
152          </select>
153          <input type="button" value="Make Figure" 
154                onclick="app.makeFigure(this.parentNode.figType, this.parentNode.figFormat)"/>
155        </form>
156      </div>
157    </td>
158  </tr>
159</table>
160
161<table class="controlTable">
162<tr class="controlHeadings">
163<th>Dataset  <span py:replace="helpIcon('dataset_help')"/> 
164</th> 
165<th>Layer <span py:replace="helpIcon('layer_help')"/></th> 
166</tr>
167<tr>
168<td>
169        <div id="dataset_help" class="hidden">
170        <div class="helptxt">
171                        Select a dataset to expand it and make its map layers visible; these can then be selected to add to the 'Layer'
172                        panel for visualisation.<br/> 
173                        Remove datasets from the display by clicking their <img src="$g.server/js/img/close.gif" /> icon.
174        </div>
175    </div>
176</td>
177<td>
178        <div id="layer_help" class="hidden">
179        <div class="helptxt">
180                When multiple map layers are selected, the displayed map is constructed by sequentially adding the layers from the bottom of the list
181                to the top.<br/>
182                NB, if the topmost layer has legend data available then this will be displayed under the completed map.<br/>
183                Remove layers from the displayed map by clicking their <img src="$g.server/js/img/close.gif" /> icon.
184        </div>
185    </div>
186</td>
187</tr>
188<tr>
189<td class="controlPanel"><div class="controlContent" id="layerTree">
190        Please wait while datasets load</div>
191</td>
192<td class="controlPanel">
193        <div class="controlContent" id="layerLeaves">
194                <div id="layerMessage" class="layerMessage">
195            <span py:if="'viewItems' not in session" py:strip="True">
196                Please select a dataset to view - from the 'Selections' tab.
197            </span>
198            <span py:if="'viewItems' in session" py:strip="True">
199                                Expand a dataset and select a layer to view
200                        </span>
201                </div>
202                <div class="workarea">
203                        <ul class="draglist" id="layerlist">
204                        </ul>
205                </div>
206        </div>
207</td>
208</tr>
209</table>
210
211</div>
212</div>
213</body>
214</html>
Note: See TracBrowser for help on using the repository browser.