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>
|
233
|
12 <scale>"10"</scale>
|
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>
|
233
|
21 <scale>"0.2"</scale>
|
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>
|
233
|
57 <scale>"10"</scale>
|
213
|
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>
|
233
|
66 <scale>"0.2"</scale>
|
213
|
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>
|
245
|
103 <width>2</width>
|
|
104 </LineStyle>
|
|
105 </Style>
|
|
106 <Style id="green_line">
|
|
107 <LineStyle>
|
|
108 <color>ff00ff00</color>
|
|
109 <width>2</width>
|
|
110 </LineStyle>
|
|
111 </Style>
|
|
112 <Style id="black_line">
|
|
113 <LineStyle>
|
|
114 <color>ff000000</color>
|
|
115 <width>2</width>
|
|
116 </LineStyle>
|
|
117 </Style>
|
|
118 <Style id="violett_line">
|
|
119 <LineStyle>
|
|
120 <color>ffff00ff</color>
|
|
121 <width>2</width>
|
|
122 </LineStyle>
|
|
123 </Style>
|
|
124 <Style id="blue_line">
|
|
125 <LineStyle>
|
|
126 <color>ffff0000</color>
|
|
127 <width>2</width>
|
|
128 </LineStyle>
|
|
129 </Style>
|
|
130 <Style id="red_big_line">
|
|
131 <LineStyle>
|
|
132 <color>ff0000ff</color>
|
76
|
133 <width>4</width>
|
|
134 </LineStyle>
|
245
|
135 </Style>
|
|
136 <Style id="green_big_line">
|
|
137 <LineStyle>
|
|
138 <color>ff00ff00</color>
|
|
139 <width>4</width>
|
|
140 </LineStyle>
|
|
141 </Style>
|
|
142 <Style id="black_big_line">
|
|
143 <LineStyle>
|
|
144 <color>ff000000</color>
|
|
145 <width>4</width>
|
|
146 </LineStyle>
|
|
147 </Style>
|
|
148 <Style id="violett_big_line">
|
|
149 <LineStyle>
|
|
150 <color>ffff00ff</color>
|
|
151 <width>4</width>
|
|
152 </LineStyle>
|
|
153 </Style>
|
|
154 <Style id="blue_big_line">
|
|
155 <LineStyle>
|
|
156 <color>ffff0000</color>
|
|
157 <width>4</width>
|
|
158 </LineStyle>
|
76
|
159 </Style>
|
233
|
160 <Style id="blue_poly">
|
|
161 <LineStyle>
|
245
|
162 <color>ffff0000</color>
|
233
|
163 <width>2</width>
|
|
164 </LineStyle>
|
|
165 <PolyStyle>
|
245
|
166 <color>ffff0000</color>
|
233
|
167 </PolyStyle>
|
|
168 </Style>
|
|
169 <Style id="black_poly">
|
|
170 <LineStyle>
|
245
|
171 <color>ff000000</color>
|
233
|
172 <width>2</width>
|
|
173 </LineStyle>
|
|
174 <PolyStyle>
|
245
|
175 <color>ff000000</color>
|
233
|
176 </PolyStyle>
|
|
177 </Style>
|
213
|
178 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'icon')">
|
135
|
179 <description tal:content="place/description" >
|
57
|
180 ERD-0815: ERD-0815
|
|
181 </description>
|
135
|
182 <styleUrl tal:content="place/icon" >#marker_icon_red</styleUrl>
|
|
183 <Point tal:condition="python:place.has_key('icon')">
|
128
|
184 <coordinates tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates>
|
55
|
185 </Point>
|
135
|
186 </Placemark>
|
213
|
187 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'LinearRing')">
|
245
|
188 <name>Border-Line</name>
|
135
|
189 <description tal:content="place/description" >
|
|
190 ERD-0815: ERD-0815
|
|
191 </description>
|
245
|
192 <styleUrl tal:content="place/lineColor" >#red_line</styleUrl>
|
233
|
193 <LineString>
|
|
194 <extrude>1</extrude>
|
|
195 <tessellate>1</tessellate>
|
|
196 <coordinates tal:content="string:${place/LinearRing}">116.38,39.92,0</coordinates>
|
|
197 </LineString>
|
117
|
198 </Placemark>
|
56
|
199 <Placemark tal:condition="withLine">
|
76
|
200 <name>Path</name>
|
|
201 <description>Red line visualizes path between locations</description>
|
56
|
202 <styleUrl>#red_line</styleUrl>
|
76
|
203 <LineString>
|
|
204 <extrude>1</extrude>
|
|
205 <tessellate>1</tessellate>
|
57
|
206 <altitudeMode>clampToGround</altitudeMode>
|
|
207 <coordinates>
|
|
208 <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>
|
|
209 </coordinates>
|
76
|
210 </LineString>
|
|
211 </Placemark>
|
233
|
212 </Document>
|
55
|
213 </kml>
|