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