Mercurial > hg > ChinaGisRestApi
annotate zpt/GIS_schema_table.zpt @ 259:17b2c2dba0fd
GIS-Links from MPDL-Documents now served by Mappit-Server
author | fknauft |
---|---|
date | Wed, 28 Sep 2011 19:08:52 +0200 |
parents | 901c1f745d13 |
children | f25ee0424ce6 |
rev | line source |
---|---|
70 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
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 | 4 <html xmlns="http://www.w3.org/1999/xhtml" |
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 | 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 | 16 <head> |
17 <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
18 <meta http-Equiv="Cache-Control" Content="no-cache"> | |
19 <meta http-Equiv="Pragma" Content="no-cache"> | |
20 <meta http-Equiv="Expires" Content="0"> | |
214 | 21 <link rel="stylesheet" type="text/css" tal:attributes="href string:lib/mpiwgstyles.css"> |
44 | 22 |
23 <style type="text/css"> | |
24 html { height: 100% } | |
25 body { height: 100%; margin: 0px; padding: 0px } | |
26 #map_canvas { height: 100% } | |
27 </style> | |
28 <style type="text/css"> | |
29 td {height:10; font-size:12;} | |
30 th {height:10; font-size:12;} | |
31 b {height:10; font-size:12;} | |
32 h4 {height:10; font-size:15;} | |
33 </style> | |
34 <style type="text/css"> | |
35 .tooltip { | |
36 background-color:#ffffff; | |
37 font-weight:bold; | |
38 border:2px #006699 solid; | |
39 } | |
40 </style> | |
41 | |
42 | |
43 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
44 | |
45 <!--**************** | |
46 Now follow the additional Layers: --> | |
47 | |
48 <!-- <script type="text/javascript" tal:content="python:here.getFunctionAddLayers()"></script> --> | |
49 | |
50 <!--**************** --> | |
51 | |
52 <!-- <script src="/chinagis/javascript/geoxml.js" type="text/javascript"></script> | |
53 <script src="/chinagis/javascript/showSelectedInMap_kml.js" type="text/javascript"></script> | |
54 <script src="/chinagis/javascript/labeledMarker.js" type="text/javascript"></script>--> | |
55 <script type="text/javascript"> | |
56 var map = null; | |
57 | 57 function initialize(kmlUrl) { |
44 | 58 map = new google.maps.Map(document.getElementById("map_canvas")); |
59 map.setMapTypeId(google.maps.MapTypeId.TERRAIN); | |
60 var latlng = new google.maps.LatLng(29,116); | |
61 map.setCenter(latlng); //(LatLng) | |
62 map.setZoom(5); // (Zoom-Level) | |
63 | |
64 //geocoder = new google.maps.Geocoder(); | |
57 | 65 newMarker=new google.maps.KmlLayer(kmlUrl); |
44 | 66 newMarker.setMap(map); |
67 } | |
68 </script> | |
69 </head> | |
70 <body tal:attributes="onload string:initialize('$kmlUrl')"> | |
71 <div id="map_canvas" style="width: 98%; height: 95%"> </div> | |
72 </body> | |
73 </html> |