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