diff zpt/KML_schema_table.zpt @ 59:a5f2550a5b44

more cleanup in kml generation sorting works better more parameters
author casties
date Fri, 22 Oct 2010 19:37:55 +0200
parents b47314bcff37
children 9c66c0ab395c
line wrap: on
line diff
--- a/zpt/KML_schema_table.zpt	Thu Oct 21 19:38:41 2010 +0200
+++ b/zpt/KML_schema_table.zpt	Fri Oct 22 19:37:55 2010 +0200
@@ -1,6 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:tal="http://xml.zope.org/namespaces/tal" 
-  tal:define="schema options/schema; table options/table; data python:here.getKmlData(schema=schema,table=table); 
+  tal:define="gisIdField python:request.get('gis_id_field',None);
+  latField python:request.get('lat_field',None); lonField python:request.get('lon_field',None);
+  sortBy python:request.get('sort_field',1);
+  schema options/schema; table options/table; 
+  data python:here.getKmlData(schema=schema,table=table,sortBy=sortBy,gisIdField=gisIdField,latField=latField,lonField=lonField); 
   withLine python:request.get('connect_line',None);">
   <Document>
     <Style id="marker_icon">