diff zpt/GIS_schema_table.zpt @ 57:b47314bcff37

connect lines works now
author casties
date Wed, 20 Oct 2010 18:27:24 +0200
parents 2f4c427dec44
children 9ec7e32e8ad3
line wrap: on
line diff
--- a/zpt/GIS_schema_table.zpt	Tue Oct 19 18:08:49 2010 +0200
+++ b/zpt/GIS_schema_table.zpt	Wed Oct 20 18:27:24 2010 +0200
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html tal:define="root here/getRestDbUrl; layout python:request.get('layout','pre'); element_id python:request.get('element_id',None);
-        schema options/schema; table options/table; id python:request.get('id',[]); doc python:request.get('doc',None);
-        kmlUrl python:here.getLiveKmlUrl(schema=schema,table=table,id=id,doc=doc);
+<html tal:define="root here/getRestDbUrl;
+        schema options/schema; table options/table;
+        kmlUrl python:here.getLiveKmlUrl(schema=schema,table=table);
 ">
  <head>
     <meta http-equiv="content-type" content="text/html; charset=utf-8">
@@ -44,8 +44,7 @@
   <script src="/chinagis/javascript/labeledMarker.js" type="text/javascript"></script>-->
   <script type="text/javascript">
    var map = null;
-   function initialize(data) {
-       kmlURL=initialize.arguments[0];
+   function initialize(kmlUrl) {
        map = new google.maps.Map(document.getElementById("map_canvas"));
        map.setMapTypeId(google.maps.MapTypeId.TERRAIN);
        var latlng = new google.maps.LatLng(29,116);
@@ -53,7 +52,7 @@
        map.setZoom(5); // (Zoom-Level)
 
        //geocoder = new google.maps.Geocoder();
-       newMarker=new google.maps.KmlLayer(kmlURL);
+       newMarker=new google.maps.KmlLayer(kmlUrl);
        newMarker.setMap(map);
     }
   </script>