source: subversion/applications/rendering/nor-hikingmap/pistemap.xml @ 25036

Last change on this file since 25036 was 25036, checked in by vibrog, 9 years ago

Change background color to make wood areas evident on the winter map: White is better

File size: 12.0 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE Map [
3<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
4<!ENTITY % sharedentities SYSTEM "entities.xml.ent">
5
6<!ENTITY background-color "#FFF"><!-- background (default land) -->
7<!ENTITY forestland-color "#E9F8FF"><!-- wood -->
8<!ENTITY farmland-color "#FFF"><!-- farmland, field, orchard -->
9<!ENTITY openland-color "#FFF"><!-- meadow, recreation ground, park -->
10<!ENTITY roadcore-color "#FFF"><!-- roads core, parking, pitch, yard -->
11<!ENTITY urbanarea-color "#CCC"><!-- residential, industrial -->
12<!ENTITY regulatedarea-color "#CCC"><!-- construction, landfill, quarry -->
13<!ENTITY water-color "#0076AD"><!-- water -->
14<!ENTITY waterline-color "#006594"><!-- stream, shoreline -->
15<!ENTITY naturearea-color "#007D33">
16<!ENTITY trail-color "#DDD"><!-- path, track, footway, cycleway -->
17<!ENTITY nordic-color "#F90025"><!-- piste:type=nordic, route=ski -->
18<!ENTITY sled-color "#CDABDE"><!-- piste:type=sled -->
19<!ENTITY wintertrail-color "#444"><!-- piste:type=hike -->
20
21%sharedentities;
22%entities;
23]>
24
25<Map bgcolor="&water-color;" srs="&osm2pgsql_projection;"
26     minimum_version="0.7.1">
27  &fontset-settings;
28
29<Style name="skiing">
30  <Rule>
31    <Filter>[piste:grooming] = 'backcountry'</Filter>
32    &maxscale_zoom13;
33    <LineSymbolizer>
34      <CssParameter name="stroke">&nordic-color;</CssParameter>
35      <CssParameter name="stroke-width">1.5</CssParameter>
36      <CssParameter name="stroke-dasharray">6,8</CssParameter>
37    </LineSymbolizer>
38  </Rule>
39  <Rule>
40    <Filter>[piste:grooming] = 'scooter'</Filter>
41    &maxscale_zoom11;
42    <LineSymbolizer>
43      <CssParameter name="stroke">&nordic-color;</CssParameter>
44      <CssParameter name="stroke-width">1.5</CssParameter>
45      <CssParameter name="stroke-dasharray">20,3</CssParameter>
46    </LineSymbolizer>
47  </Rule>
48  <Rule>
49    <Filter>[piste:type] = 'nordic' and not ([piste:grooming] = 'backcountry' or [piste:grooming] = 'scooter')</Filter>
50    &maxscale_zoom11;
51    <LineSymbolizer>
52      <CssParameter name="stroke">&nordic-color;</CssParameter>
53      <CssParameter name="stroke-width">2</CssParameter>
54    </LineSymbolizer>
55  </Rule>
56  <Rule>
57    <Filter>[piste:type] = 'nordic' and [lit]='yes'</Filter>
58    &maxscale_zoom13;
59    <LineSymbolizer>
60      <CssParameter name="stroke">&nordic-color;</CssParameter>
61      <CssParameter name="stroke-width">6</CssParameter>
62      <CssParameter name="stroke-dasharray">1,21</CssParameter>
63      <CssParameter name="stroke-linejoin">round</CssParameter>
64      <CssParameter name="stroke-linecap">round</CssParameter>
65    </LineSymbolizer>
66  </Rule>
67
68  <Rule>
69    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
70    &maxscale_zoom12;
71    &minscale_zoom13;
72    <LineSymbolizer>
73      <CssParameter name="stroke">#00A245</CssParameter>
74      <CssParameter name="stroke-width">1.5</CssParameter>
75      <CssParameter name="stroke-opacity">0.65</CssParameter>
76    </LineSymbolizer>
77  </Rule>
78  <Rule>
79    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
80    &maxscale_zoom14;
81    &minscale_zoom14;
82    <LineSymbolizer>
83      <CssParameter name="stroke">#00A245</CssParameter>
84      <CssParameter name="stroke-width">5</CssParameter>
85      <CssParameter name="stroke-opacity">0.65</CssParameter>
86    </LineSymbolizer>
87  </Rule>
88  <Rule>
89    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
90    &maxscale_zoom15;
91    <LineSymbolizer>
92      <CssParameter name="stroke">#00A245</CssParameter>
93      <CssParameter name="stroke-width">7.5</CssParameter>
94      <CssParameter name="stroke-opacity">0.65</CssParameter>
95    </LineSymbolizer>
96  </Rule>
97
98  <Rule>
99    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
100    &maxscale_zoom12;
101    &minscale_zoom13;
102    <LineSymbolizer>
103      <CssParameter name="stroke">#00A4DF</CssParameter>
104      <CssParameter name="stroke-width">1.5</CssParameter>
105      <CssParameter name="stroke-opacity">0.65</CssParameter>
106    </LineSymbolizer>
107  </Rule>
108  <Rule>
109    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
110    &maxscale_zoom14;
111    &minscale_zoom14;
112    <LineSymbolizer>
113      <CssParameter name="stroke">#00A4DF</CssParameter>
114      <CssParameter name="stroke-width">5</CssParameter>
115      <CssParameter name="stroke-opacity">0.65</CssParameter>
116    </LineSymbolizer>
117  </Rule>
118  <Rule>
119    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
120    &maxscale_zoom15;
121    <LineSymbolizer>
122      <CssParameter name="stroke">#00A4DF</CssParameter>
123      <CssParameter name="stroke-width">7.5</CssParameter>
124      <CssParameter name="stroke-opacity">0.65</CssParameter>
125    </LineSymbolizer>
126  </Rule>
127
128  <Rule>
129    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
130    &maxscale_zoom12;
131    &minscale_zoom13;
132    <LineSymbolizer>
133      <CssParameter name="stroke">#E70019</CssParameter>
134      <CssParameter name="stroke-width">1.5</CssParameter>
135      <CssParameter name="stroke-opacity">0.65</CssParameter>
136    </LineSymbolizer>
137  </Rule>
138  <Rule>
139    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
140    &maxscale_zoom14;
141    &minscale_zoom14;
142    <LineSymbolizer>
143      <CssParameter name="stroke">#E70019</CssParameter>
144      <CssParameter name="stroke-width">5</CssParameter>
145      <CssParameter name="stroke-opacity">0.65</CssParameter>
146    </LineSymbolizer>
147  </Rule>
148  <Rule>
149    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
150    &maxscale_zoom15;
151    <LineSymbolizer>
152      <CssParameter name="stroke">#E70019</CssParameter>
153      <CssParameter name="stroke-width">7.5</CssParameter>
154      <CssParameter name="stroke-opacity">0.65</CssParameter>
155    </LineSymbolizer>
156  </Rule>
157
158  <Rule>
159    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
160    &maxscale_zoom12;
161    &minscale_zoom13;
162    <LineSymbolizer>
163      <CssParameter name="stroke">#17180D</CssParameter>
164      <CssParameter name="stroke-width">1.5</CssParameter>
165      <CssParameter name="stroke-opacity">0.65</CssParameter>
166    </LineSymbolizer>
167  </Rule>
168  <Rule>
169    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
170    &maxscale_zoom14;
171    &minscale_zoom14;
172    <LineSymbolizer>
173      <CssParameter name="stroke">#17180D</CssParameter>
174      <CssParameter name="stroke-width">5</CssParameter>
175      <CssParameter name="stroke-opacity">0.65</CssParameter>
176    </LineSymbolizer>
177  </Rule>
178  <Rule>
179    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
180    &maxscale_zoom15;
181    <LineSymbolizer>
182      <CssParameter name="stroke">#17180D</CssParameter>
183      <CssParameter name="stroke-width">7.5</CssParameter>
184      <CssParameter name="stroke-opacity">0.65</CssParameter>
185    </LineSymbolizer>
186  </Rule>
187
188  <!-- Expert orange #FF8040 -->
189
190  <Rule>
191    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
192    &maxscale_zoom12;
193    &minscale_zoom13;
194    <LineSymbolizer>
195      <CssParameter name="stroke">#F6E760</CssParameter>
196      <CssParameter name="stroke-width">1.5</CssParameter>
197      <CssParameter name="stroke-opacity">0.65</CssParameter>
198    </LineSymbolizer>
199  </Rule>
200  <Rule>
201    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
202    &maxscale_zoom14;
203    &minscale_zoom14;
204    <LineSymbolizer>
205      <CssParameter name="stroke">#F6E760</CssParameter>
206      <CssParameter name="stroke-width">5</CssParameter>
207      <CssParameter name="stroke-opacity">0.65</CssParameter>
208    </LineSymbolizer>
209  </Rule>
210  <Rule>
211    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
212    &maxscale_zoom15;
213    <LineSymbolizer>
214      <CssParameter name="stroke">#F6E760</CssParameter>
215      <CssParameter name="stroke-width">7.5</CssParameter>
216      <CssParameter name="stroke-opacity">0.65</CssParameter>
217    </LineSymbolizer>
218  </Rule>
219
220  <Rule>
221    <Filter>[piste:type] = 'sled'</Filter>
222    &maxscale_zoom11;
223    <LineSymbolizer>
224      <CssParameter name="stroke">&sled-color;</CssParameter>
225      <CssParameter name="stroke-width">2</CssParameter>
226    </LineSymbolizer>
227  </Rule>
228  <Rule>
229    <Filter>[piste:type] = 'sled' and [lit]='yes'</Filter>
230    &maxscale_zoom13;
231    <LineSymbolizer>
232      <CssParameter name="stroke">&sled-color;</CssParameter>
233      <CssParameter name="stroke-width">6</CssParameter>
234      <CssParameter name="stroke-dasharray">1,21</CssParameter>
235      <CssParameter name="stroke-linejoin">round</CssParameter>
236      <CssParameter name="stroke-linecap">round</CssParameter>
237    </LineSymbolizer>
238  </Rule>
239  <Rule>
240    <Filter>[piste:type] = 'sleigh'</Filter>
241    &maxscale_zoom11;
242    <LineSymbolizer>
243      <CssParameter name="stroke">&sled-color;</CssParameter>
244      <CssParameter name="stroke-width">1.5</CssParameter>
245      <CssParameter name="stroke-dasharray">20,3</CssParameter>
246    </LineSymbolizer>
247  </Rule>
248
249  <Rule>
250    <Filter>[piste:type] = 'hike'</Filter>
251    &maxscale_zoom12;
252    &minscale_zoom13;
253    <LineSymbolizer>
254      <CssParameter name="stroke">&wintertrail-color;</CssParameter>
255      <CssParameter name="stroke-linejoin">round</CssParameter>
256      <CssParameter name="stroke-linecap">round</CssParameter>
257      <CssParameter name="stroke-width">0.4</CssParameter>
258      <CssParameter name="stroke-dasharray">2,1</CssParameter>
259    </LineSymbolizer>
260  </Rule>
261  <Rule>
262    <Filter>[piste:type] = 'hike'</Filter>
263    &maxscale_zoom14;
264    <LineSymbolizer>
265      <CssParameter name="stroke">&wintertrail-color;</CssParameter>
266      <CssParameter name="stroke-linejoin">round</CssParameter>
267      <CssParameter name="stroke-linecap">round</CssParameter>
268      <CssParameter name="stroke-width">0.75</CssParameter>
269      <CssParameter name="stroke-dasharray">4,2</CssParameter>
270    </LineSymbolizer>
271  </Rule>
272
273</Style>
274
275<Style name="symbols-winter">
276  <Rule>
277    &maxscale_zoom13;
278    <Filter>[leisure]='ski_playground'</Filter>
279    <PointSymbolizer file="&symbols;/skiplayground.png"
280       type="png" width="15" height="15"
281       allow_overlap="false"/>
282  </Rule>
283  <Rule>
284    &maxscale_zoom13;
285    <Filter>[sport]='biathlon'</Filter>
286    <PointSymbolizer file="&symbols;/biathlon.png"
287       type="png" width="15" height="15"
288       allow_overlap="false"/>
289  </Rule>
290  <Rule>
291    &maxscale_zoom13;
292    <Filter>[sport]='ski_jump_take_off'</Filter>
293    <PointSymbolizer file="&symbols;/skijump.png"
294       type="png" width="15" height="15"
295       allow_overlap="false"/>
296  </Rule>
297</Style>
298
299&layer-world;
300&layer-landscape;
301&layer-linefeatures;
302&layer-buildings;
303&layer-roads;
304&layer-nationalpark;
305
306<Layer name="skiing" status="on" srs="&osm2pgsql_projection;">
307    <StyleName>skiing</StyleName>
308    <Datasource>
309      <Parameter name="table">
310      (select way,"piste:type","piste:grooming","piste:difficulty",route,lit
311       from &prefix;_line
312       where "piste:type" in ('nordic','downhill','hike')
313          or "piste:grooming" is not null
314          or route='ski'
315      ) as skiing
316      </Parameter>
317      &datasource-settings;
318   </Datasource>
319</Layer>
320
321&layer-roadnames;
322&layer-powerlines;
323&layer-symbols-facilities;
324&layer-symbols-hiking;
325
326<Layer name="symbols-winter" status="on" srs="&osm2pgsql_projection;">
327  <StyleName>symbols-winter</StyleName>
328  <Datasource>
329    <Parameter name="table">
330    (select *
331    from &prefix;_point
332    where sport in ('biathlon','ski_jump_take_off')
333       or landuse='winter_sports'
334       or leisure='ski_playground'
335    ) as symbols</Parameter>
336    &datasource-settings;
337  </Datasource>
338</Layer>
339<Layer name="symbols-winter-poly" status="on" srs="&osm2pgsql_projection;">
340  <StyleName>symbols-winter</StyleName>
341  <Datasource>
342    <Parameter name="table">
343    (select *
344    from &prefix;_polygon
345    where sport is not null
346       or landuse='winter_sports'
347       or leisure='ski_playground'
348    ) as symbols</Parameter>
349    &datasource-settings;
350  </Datasource>
351</Layer>
352
353&layer-text-water;
354&layer-areatext;
355&layer-placenames;
356</Map>
Note: See TracBrowser for help on using the repository browser.