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"
|
147
|
3 tal:define="gisIdField python:request.get('gis_id_field',None); colorField python:request.get('color_field','red');
|
|
4 latField python:request.get('lat_field',None); lonField python:request.get('lon_field',None); geomField python:request.get('geometry_field','poly');
|
59
|
5 sortBy python:request.get('sort_field',1);
|
|
6 schema options/schema; table options/table;
|
147
|
7 data python:here.getKmlData(schema=schema,table=table,sortBy=sortBy,gisIdField=gisIdField,latField=latField,lonField=lonField,geomField=geomField,colorField=colorField );
|
56
|
8 withLine python:request.get('connect_line',None);">
|
55
|
9 <Document>
|
110
|
10 <Style id="marker_icon_red">
|
|
11 <IconStyle>
|
171
|
12 <size>"10"</size>
|
110
|
13 <Icon>
|
|
14 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red.png</href>
|
|
15 </Icon>
|
|
16 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
17 </IconStyle>
|
|
18 </Style>
|
|
19 <Style id="marker_icon_black">
|
55
|
20 <IconStyle>
|
171
|
21 <size>"0.2"</size>
|
55
|
22 <Icon>
|
181
|
23 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black.png</href>
|
110
|
24 </Icon>
|
|
25 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
26 </IconStyle>
|
|
27 </Style>
|
168
|
28 <Style id="marker_icon_blue">
|
110
|
29 <IconStyle>
|
169
|
30 <scale>"0.2"</scale>
|
110
|
31 <Icon>
|
170
|
32 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_blue.png</href>
|
110
|
33 </Icon>
|
|
34 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
35 </IconStyle>
|
|
36 </Style>
|
|
37 <Style id="marker_icon_green">
|
|
38 <IconStyle>
|
169
|
39 <scale>"0.2"</scale>
|
110
|
40 <Icon>
|
|
41 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_green.png</href>
|
|
42 </Icon>
|
|
43 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
44 </IconStyle>
|
|
45 </Style>
|
|
46 <Style id="marker_icon_violett">
|
|
47 <IconStyle>
|
169
|
48 <scale>"0.2"</scale>
|
110
|
49 <Icon>
|
|
50 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_violett.png</href>
|
55
|
51 </Icon>
|
57
|
52 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
55
|
53 </IconStyle>
|
|
54 </Style>
|
213
|
55 <Style id="marker_icon_red_big">
|
|
56 <IconStyle>
|
|
57 <size>"10"</size>
|
|
58 <Icon>
|
|
59 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red_big.png</href>
|
|
60 </Icon>
|
|
61 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
62 </IconStyle>
|
|
63 </Style>
|
|
64 <Style id="marker_icon_black_big">
|
|
65 <IconStyle>
|
|
66 <size>"0.2"</size>
|
|
67 <Icon>
|
|
68 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black_big.png</href>
|
|
69 </Icon>
|
|
70 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
71 </IconStyle>
|
|
72 </Style>
|
|
73 <Style id="marker_icon_blue_big">
|
|
74 <IconStyle>
|
|
75 <scale>"0.2"</scale>
|
|
76 <Icon>
|
|
77 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_blue_big.png</href>
|
|
78 </Icon>
|
|
79 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
80 </IconStyle>
|
|
81 </Style>
|
|
82 <Style id="marker_icon_green_big">
|
|
83 <IconStyle>
|
|
84 <scale>"0.2"</scale>
|
|
85 <Icon>
|
|
86 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_green_big.png</href>
|
|
87 </Icon>
|
|
88 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
89 </IconStyle>
|
|
90 </Style>
|
|
91 <Style id="marker_icon_violett_big">
|
|
92 <IconStyle>
|
|
93 <scale>"0.2"</scale>
|
|
94 <Icon>
|
|
95 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_violett_big.png</href>
|
|
96 </Icon>
|
|
97 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
|
|
98 </IconStyle>
|
|
99 </Style>
|
56
|
100 <Style id="red_line">
|
76
|
101 <LineStyle>
|
57
|
102 <color>ff0000ff</color>
|
76
|
103 <width>4</width>
|
|
104 </LineStyle>
|
57
|
105 <PolyStyle>
|
|
106 <color>ff0000ff</color>
|
|
107 </PolyStyle>
|
76
|
108 </Style>
|
213
|
109 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'icon')">
|
135
|
110 <description tal:content="place/description" >
|
57
|
111 ERD-0815: ERD-0815
|
|
112 </description>
|
135
|
113 <styleUrl tal:content="place/icon" >#marker_icon_red</styleUrl>
|
|
114 <Point tal:condition="python:place.has_key('icon')">
|
128
|
115 <coordinates tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates>
|
55
|
116 </Point>
|
135
|
117 </Placemark>
|
213
|
118 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'LinearRing')">
|
135
|
119 <description tal:content="place/description" >
|
|
120 ERD-0815: ERD-0815
|
|
121 </description>
|
154
|
122 <Style> <PolyStyle><color tal:content="place/LineColor">#80800000</color><fill>0.1</fill><outline>1</outline></PolyStyle></Style>
|
143
|
123 <Polygon><outerBoundaryIs><LinearRing><coordinates tal:content="string:${place/LinearRing}">116.38,39.92,0</coordinates>
|
|
124 </LinearRing></outerBoundaryIs></Polygon>
|
117
|
125 </Placemark>
|
56
|
126 <Placemark tal:condition="withLine">
|
76
|
127 <name>Path</name>
|
|
128 <description>Red line visualizes path between locations</description>
|
56
|
129 <styleUrl>#red_line</styleUrl>
|
76
|
130 <LineString>
|
|
131 <extrude>1</extrude>
|
|
132 <tessellate>1</tessellate>
|
57
|
133 <altitudeMode>clampToGround</altitudeMode>
|
|
134 <coordinates>
|
|
135 <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>
|
|
136 </coordinates>
|
76
|
137 </LineString>
|
|
138 </Placemark>
|
55
|
139 </Document>
|
|
140 </kml>
|