annotate zpt/GIS_schema_table.zpt @ 219:4081fb681230

implement Google Search
author fknauft
date Tue, 29 Mar 2011 16:34:13 +0200
parents 052b426e9d9f
children 7c5d825a0083
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
9ec7e32e8ad3 working on maps
casties
parents: 57
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
9ec7e32e8ad3 working on maps
casties
parents: 57
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9ec7e32e8ad3 working on maps
casties
parents: 57
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
9ec7e32e8ad3 working on maps
casties
parents: 57
diff changeset
4 tal:define="root here/getRestDbUrl;
57
b47314bcff37 connect lines works now
casties
parents: 55
diff changeset
5 schema options/schema; table options/table;
b47314bcff37 connect lines works now
casties
parents: 55
diff changeset
6 kmlUrl python:here.getLiveKmlUrl(schema=schema,table=table);
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
7 ">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
8 <head>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
9 <meta http-equiv="content-type" content="text/html; charset=utf-8">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
10 <meta http-Equiv="Cache-Control" Content="no-cache">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
11 <meta http-Equiv="Pragma" Content="no-cache">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
12 <meta http-Equiv="Expires" Content="0">
214
052b426e9d9f changes on intro site
fknauft
parents: 70
diff changeset
13 <link rel="stylesheet" type="text/css" tal:attributes="href string:lib/mpiwgstyles.css">
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
14
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
15 <style type="text/css">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
16 html { height: 100% }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
17 body { height: 100%; margin: 0px; padding: 0px }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
18 #map_canvas { height: 100% }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
19 </style>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
20 <style type="text/css">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
21 td {height:10; font-size:12;}
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
22 th {height:10; font-size:12;}
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
23 b {height:10; font-size:12;}
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
24 h4 {height:10; font-size:15;}
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
25 </style>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
26 <style type="text/css">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
27 .tooltip {
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
28 background-color:#ffffff;
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
29 font-weight:bold;
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
30 border:2px #006699 solid;
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
31 }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
32 </style>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
33
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
34
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
35 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
36
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
37 <!--****************
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
38 Now follow the additional Layers: -->
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
39
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
40 <!-- <script type="text/javascript" tal:content="python:here.getFunctionAddLayers()"></script> -->
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
41
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
42 <!--**************** -->
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
43
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
44 <!-- <script src="/chinagis/javascript/geoxml.js" type="text/javascript"></script>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
45 <script src="/chinagis/javascript/showSelectedInMap_kml.js" type="text/javascript"></script>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
46 <script src="/chinagis/javascript/labeledMarker.js" type="text/javascript"></script>-->
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
47 <script type="text/javascript">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
48 var map = null;
57
b47314bcff37 connect lines works now
casties
parents: 55
diff changeset
49 function initialize(kmlUrl) {
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
50 map = new google.maps.Map(document.getElementById("map_canvas"));
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
51 map.setMapTypeId(google.maps.MapTypeId.TERRAIN);
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
52 var latlng = new google.maps.LatLng(29,116);
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
53 map.setCenter(latlng); //(LatLng)
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
54 map.setZoom(5); // (Zoom-Level)
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
55
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
56 //geocoder = new google.maps.Geocoder();
57
b47314bcff37 connect lines works now
casties
parents: 55
diff changeset
57 newMarker=new google.maps.KmlLayer(kmlUrl);
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
58 newMarker.setMap(map);
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
59 }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
60 </script>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
61 </head>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
62 <body tal:attributes="onload string:initialize('$kmlUrl')">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
63 <div id="map_canvas" style="width: 98%; height: 95%"> </div>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
64 </body>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
65 </html>