annotate zpt/GIS_schema_table.zpt @ 254:901c1f745d13

GIS-Links from MPDL-Documents now served by Mappit-Server
author fknauft
date Wed, 28 Sep 2011 15:09:14 +0200
parents 7c5d825a0083
children f25ee0424ce6
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">
254
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
3
70
9ec7e32e8ad3 working on maps
casties
parents: 57
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml"
9ec7e32e8ad3 working on maps
casties
parents: 57
diff changeset
5 tal:define="root here/getRestDbUrl;
254
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
6 schema options/schema; table options/table;
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
7 kmlUrl python:here.getLiveUrl(schema=schema,table=table,useTimestamp=False);
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
8 ">
254
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
9 <!--
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
10 <html xmlns="http://www.w3.org/1999/xhtml"
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
11 tal:define="root here/getRestDbUrl;
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
12 schema options/schema; table options/table; args options/args;
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
13 kmlUrl python:RestDbGisAPI.getKmlUrl(here, schema=schema,table=table, args=args);
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
14 ">
901c1f745d13 GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents: 245
diff changeset
15 -->
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
16 <head>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
17 <meta http-equiv="content-type" content="text/html; charset=utf-8">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
18 <meta http-Equiv="Cache-Control" Content="no-cache">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
19 <meta http-Equiv="Pragma" Content="no-cache">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
20 <meta http-Equiv="Expires" Content="0">
214
052b426e9d9f changes on intro site
fknauft
parents: 70
diff changeset
21 <link rel="stylesheet" type="text/css" tal:attributes="href string:lib/mpiwgstyles.css">
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
22
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
23 <style type="text/css">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
24 html { height: 100% }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
25 body { height: 100%; margin: 0px; padding: 0px }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
26 #map_canvas { height: 100% }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
27 </style>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
28 <style type="text/css">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
29 td {height:10; font-size:12;}
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
30 th {height:10; font-size:12;}
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
31 b {height:10; font-size:12;}
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
32 h4 {height:10; font-size:15;}
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
33 </style>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
34 <style type="text/css">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
35 .tooltip {
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
36 background-color:#ffffff;
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
37 font-weight:bold;
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
38 border:2px #006699 solid;
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
39 }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
40 </style>
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 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
45 <!--****************
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
46 Now follow the additional Layers: -->
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
47
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
48 <!-- <script type="text/javascript" tal:content="python:here.getFunctionAddLayers()"></script> -->
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
49
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
50 <!--**************** -->
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
51
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
52 <!-- <script src="/chinagis/javascript/geoxml.js" type="text/javascript"></script>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
53 <script src="/chinagis/javascript/showSelectedInMap_kml.js" type="text/javascript"></script>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
54 <script src="/chinagis/javascript/labeledMarker.js" type="text/javascript"></script>-->
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
55 <script type="text/javascript">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
56 var map = null;
57
b47314bcff37 connect lines works now
casties
parents: 55
diff changeset
57 function initialize(kmlUrl) {
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
58 map = new google.maps.Map(document.getElementById("map_canvas"));
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
59 map.setMapTypeId(google.maps.MapTypeId.TERRAIN);
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
60 var latlng = new google.maps.LatLng(29,116);
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
61 map.setCenter(latlng); //(LatLng)
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
62 map.setZoom(5); // (Zoom-Level)
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
63
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
64 //geocoder = new google.maps.Geocoder();
57
b47314bcff37 connect lines works now
casties
parents: 55
diff changeset
65 newMarker=new google.maps.KmlLayer(kmlUrl);
44
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
66 newMarker.setMap(map);
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
67 }
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
68 </script>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
69 </head>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
70 <body tal:attributes="onload string:initialize('$kmlUrl')">
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
71 <div id="map_canvas" style="width: 98%; height: 95%"> </div>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
72 </body>
c6c47034d2a4 more refactoring of templates
casties
parents:
diff changeset
73 </html>