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