source: qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/templates/demo.html @ 5734

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/templates/demo.html@5734
Revision 5734, 1.2 KB checked in by pnorton, 10 years ago (diff)

Added some wms request logging that writes the parameeters and the header information to a file. Hopefully this will enable statistics to be generated on the data usage.

Also made some changes to the demo page so that it works in IE.

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
3<html xmlns:py="http://genshi.edgewall.org/" 
4      xmlns="http://www.w3.org/1999/xhtml">
5
6<?python
7
8
9?>
10
11<head>
12<title>Demo Map page for ${c.fcName}</title>
13
14<script src="http://www.openlayers.org/api/OpenLayers.js" type="text/javascript"></script >
15<script src="${h.url_for('/demo.js', qualified=True)}" type="text/javascript"></script>
16
17<script type="text/javascript">
18var fcURL = "${h.url_for(controller='csmlwms', fileoruri=c.fcName)}";
19</script>
20
21<style type="text/css">
22
23DIV#map {
24    width: 520px;
25    height: 260px;
26    background=color: white;
27    margin: 0px;
28    border: 1px solid #222277;
29    z-index:0;
30}
31
32DIV#panel {
33    border: 1px solid red;
34    margin: 5px;
35}
36
37</style>
38
39</head>
40
41<body onload="init();">
42 
43  <h1>Demo Map page for ${c.fcName}</h1>
44 
45
46  <div id="map"/>
47  <div id="panel"/>
48
49  <h2>Features Available</h2>
50 
51  <select name="feature" onchange="setLayer(this.value)">
52    <option value="">Unset</option>
53
54    <py:for each="f_id in c.featureCollection.getFeatureList()">
55            <option value="${f_id}">${f_id}</option>
56    </py:for>
57  </select>
58</body>
59
60</html>
Note: See TracBrowser for help on using the repository browser.