55
|
1 <?xml version="1.0" encoding="utf-8"?>
|
|
2 <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:tal="http://xml.zope.org/namespaces/tal"
|
56
|
3 tal:define="schema options/schema; table options/table; data python:here.getKmlData(schema=schema,table=table);
|
|
4 withLine python:request.get('connect_line',None);">
|
55
|
5 <Document>
|
|
6 <Style id="marker_icon">
|
|
7 <IconStyle>
|
57
|
8 <scale>1.2</scale>
|
55
|
9 <Icon>
|
|
10 <href>http://chinagis.mpiwg-berlin.mpg.de/chinagis/images/dot_red.png</href>
|
|
11 </Icon>
|
57
|
12 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
55
|
13 </IconStyle>
|
|
14 </Style>
|
56
|
15 <Style id="red_line">
|
|
16 <LineStyle>
|
57
|
17 <color>ff0000ff</color>
|
56
|
18 <width>4</width>
|
|
19 </LineStyle>
|
57
|
20 <PolyStyle>
|
|
21 <color>ff0000ff</color>
|
|
22 </PolyStyle>
|
56
|
23 </Style>
|
55
|
24 <Placemark tal:repeat="place data">
|
57
|
25 <description tal:content="place/description">
|
|
26 ERD-0815: ERD-0815
|
|
27 </description>
|
|
28 <styleUrl tal:content="place/icon">#marker_icon</styleUrl>
|
55
|
29 <Point>
|
|
30 <coordinates tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates>
|
|
31 </Point>
|
|
32 </Placemark>
|
56
|
33 <Placemark tal:condition="withLine">
|
|
34 <name>Path</name>
|
|
35 <description>Red line visualizes path between locations</description>
|
|
36 <styleUrl>#red_line</styleUrl>
|
|
37 <LineString>
|
|
38 <extrude>1</extrude>
|
|
39 <tessellate>1</tessellate>
|
57
|
40 <altitudeMode>clampToGround</altitudeMode>
|
|
41 <coordinates>
|
|
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>
|
|
43 </coordinates>
|
56
|
44 </LineString>
|
|
45 </Placemark>
|
55
|
46 </Document>
|
|
47 </kml>
|