annotate zpt/GIS_schema_table.zpt @ 57:b47314bcff37

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