source: cows/trunk/cows/pylons/project_templates/cows_server/+package+/templates/demo.html @ 5066

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/pylons/project_templates/cows_server/+package+/templates/demo.html@5066
Revision 5066, 1.0 KB checked in by spascoe, 10 years ago (diff)

Merged in latest changes to the project template. There is now an integrated WMS viewer visible from the catalogue page.

Line 
1<?xml version="1.0"?>
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
16<script src="${h.url_for('/demo.js', qualified=True)}" type="text/javascript"></script>
17
18<script type="text/javascript">
19var fcURL = "${h.url_for(controller='csmlwms', fileoruri=c.fcName)}";
20</script>
21
22<style type="text/css">
23
24DIV#map {
25    width: 520px;
26    height: 260px;
27    background=color: white;
28    margin: 1px;
29    border: 1px solid #222277;
30}
31
32DIV#panel {
33    border: 2px solid red;
34}
35
36</style>
37
38</head>
39
40<body onload="init()">
41 
42  <h1>Demo Map page for ${c.fcName}</h1>
43 
44
45  <div id="map"/>
46  <div id="panel"/>
47
48  <h2>Features Available</h2>
49 
50  <select name="feature" onchange="setLayer(this.value)">
51    <option value="">Unset</option>
52    <option py:for="f_id in c.featureCollection.getFeatureList()">${f_id}</option>
53  </select>
54</body>
55
56</html>
Note: See TracBrowser for help on using the repository browser.