Mercurial > hg > ChinaGisRestApi
annotate zpt/GIS_schema_table.zpt @ 276:55bc9972fb1b
Merge with d1b43624cc63b829f64cc952540748e15272e389
author | casties |
---|---|
date | Thu, 23 Feb 2012 21:29:06 +0100 |
parents | f25ee0424ce6 |
children |
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" |
268 | 5 tal:define="root here/getRestDbUrl; mapName python:request.get('map',None); |
6 schema options/schema; table options/table; | |
254
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" |
268 | 11 tal:define="root here/getRestDbUrl; |
254
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>--> | |
268 | 55 |
56 <script type="text/javascript" src="lib/jquery-1.4.2.js"></script> | |
44 | 57 <script type="text/javascript"> |
58 var map = null; | |
268 | 59 |
60 function initialize(kmlUrl,mapName) { | |
61 if (mapName=='None'){ | |
44 | 62 map = new google.maps.Map(document.getElementById("map_canvas")); |
63 map.setMapTypeId(google.maps.MapTypeId.TERRAIN); | |
64 var latlng = new google.maps.LatLng(29,116); | |
65 map.setCenter(latlng); //(LatLng) | |
66 map.setZoom(5); // (Zoom-Level) | |
67 | |
68 //geocoder = new google.maps.Geocoder(); | |
57 | 69 newMarker=new google.maps.KmlLayer(kmlUrl); |
44 | 70 newMarker.setMap(map); |
268 | 71 } |
72 if (mapName!='None'){ | |
73 var url = "../db/RESTjson/db/public/gui_objects/test1/map?recursive=true"; | |
74 var jqString = jQuery.getJSON(url,callback); | |
75 return jqString; | |
76 params.name = $(elem).find(".map_name").val(); | |
77 var layers = params.map_layers; | |
78 for (var i = 0; i < layers.length; i++) { | |
79 layers[i].display = $(elem).find(".layer_display_"+i).attr("checked"); | |
80 } | |
81 | |
82 map = new google.maps.Map(document.getElementById("map_canvas")); | |
83 map.setMapTypeId(google.maps.MapTypeId.TERRAIN); | |
84 var latlng = new google.maps.LatLng(29,116); | |
85 map.setCenter(latlng); //(LatLng) | |
86 map.setZoom(5); // (Zoom-Level) | |
87 | |
88 //geocoder = new google.maps.Geocoder(); | |
89 newMarker=new google.maps.KmlLayer(kmlUrl); | |
90 newMarker.setMap(map); | |
91 } | |
92 } | |
44 | 93 </script> |
94 </head> | |
268 | 95 <body tal:attributes="onload string:initialize('$kmlUrl','$mapName')" > |
44 | 96 <div id="map_canvas" style="width: 98%; height: 95%"> </div> |
97 </body> | |
98 </html> |