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>
|
76
|
103 <width>4</width>
|
|
104 </LineStyle>
|
57
|
105 <PolyStyle>
|
|
106 <color>ff0000ff</color>
|
|
107 </PolyStyle>
|
76
|
108 </Style>
|
233
|
109 <Style id="blue_poly">
|
|
110 <LineStyle>
|
|
111 <color>0000ffff</color>
|
|
112 <width>2</width>
|
|
113 </LineStyle>
|
|
114 <PolyStyle>
|
|
115 <color>0000ffff</color>
|
|
116 </PolyStyle>
|
|
117 </Style>
|
|
118 <Style id="black_poly">
|
|
119 <LineStyle>
|
|
120 <color>000000ff</color>
|
|
121 <width>2</width>
|
|
122 </LineStyle>
|
|
123 <PolyStyle>
|
|
124 <color>000000ff</color>
|
|
125 </PolyStyle>
|
|
126 </Style>
|
213
|
127 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'icon')">
|
135
|
128 <description tal:content="place/description" >
|
57
|
129 ERD-0815: ERD-0815
|
|
130 </description>
|
135
|
131 <styleUrl tal:content="place/icon" >#marker_icon_red</styleUrl>
|
|
132 <Point tal:condition="python:place.has_key('icon')">
|
128
|
133 <coordinates tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates>
|
55
|
134 </Point>
|
135
|
135 </Placemark>
|
213
|
136 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'LinearRing')">
|
135
|
137 <description tal:content="place/description" >
|
|
138 ERD-0815: ERD-0815
|
|
139 </description>
|
233
|
140 <!-- <styleUrl tal:content="place/icon" >#red_line</styleUrl> -->
|
|
141 <styleUrl >#red_line</styleUrl>
|
|
142 <LineString>
|
|
143 <extrude>1</extrude>
|
|
144 <tessellate>1</tessellate>
|
|
145 <coordinates tal:content="string:${place/LinearRing}">116.38,39.92,0</coordinates>
|
|
146 </LineString>
|
117
|
147 </Placemark>
|
56
|
148 <Placemark tal:condition="withLine">
|
76
|
149 <name>Path</name>
|
|
150 <description>Red line visualizes path between locations</description>
|
56
|
151 <styleUrl>#red_line</styleUrl>
|
76
|
152 <LineString>
|
|
153 <extrude>1</extrude>
|
|
154 <tessellate>1</tessellate>
|
57
|
155 <altitudeMode>clampToGround</altitudeMode>
|
|
156 <coordinates>
|
|
157 <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>
|
|
158 </coordinates>
|
76
|
159 </LineString>
|
|
160 </Placemark>
|
233
|
161 </Document>
|
55
|
162 </kml>
|