annotate zpt/KML_schema_table.zpt @ 57:b47314bcff37

connect lines works now
author casties
date Wed, 20 Oct 2010 18:27:24 +0200
parents 8eca8a1fbf50
children a5f2550a5b44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
2 <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:tal="http://xml.zope.org/namespaces/tal"
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
3 tal:define="schema options/schema; table options/table; data python:here.getKmlData(schema=schema,table=table);
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
4 withLine python:request.get('connect_line',None);">
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
5 <Document>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
6 <Style id="marker_icon">
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
7 <IconStyle>
57
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
8 <scale>1.2</scale>
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
9 <Icon>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
10 <href>http://chinagis.mpiwg-berlin.mpg.de/chinagis/images/dot_red.png</href>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
11 </Icon>
57
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
12 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
13 </IconStyle>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
14 </Style>
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
15 <Style id="red_line">
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
16 <LineStyle>
57
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
17 <color>ff0000ff</color>
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
18 <width>4</width>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
19 </LineStyle>
57
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
20 <PolyStyle>
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
21 <color>ff0000ff</color>
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
22 </PolyStyle>
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
23 </Style>
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
24 <Placemark tal:repeat="place data">
57
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
25 <description tal:content="place/description">
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
26 ERD-0815: ERD-0815
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
27 </description>
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
28 <styleUrl tal:content="place/icon">#marker_icon</styleUrl>
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
29 <Point>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
30 <coordinates tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
31 </Point>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
32 </Placemark>
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
33 <Placemark tal:condition="withLine">
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
34 <name>Path</name>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
35 <description>Red line visualizes path between locations</description>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
36 <styleUrl>#red_line</styleUrl>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
37 <LineString>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
38 <extrude>1</extrude>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
39 <tessellate>1</tessellate>
57
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
40 <altitudeMode>clampToGround</altitudeMode>
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
41 <coordinates>
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
42 <tal:span tal:repeat="place data" tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</tal:span>
b47314bcff37 connect lines works now
casties
parents: 56
diff changeset
43 </coordinates>
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
44 </LineString>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
45 </Placemark>
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
46 </Document>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
47 </kml>