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

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

Tweak downhill ski resort features: zoom and line widths

File size: 9.7 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 "#E9F8FF"><!-- 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 "#0077AD"><!-- water -->
14<!ENTITY waterline-color "#0077AD"><!-- 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
19%sharedentities;
20%entities;
21]>
22
23<Map bgcolor="&water-color;" srs="&osm2pgsql_projection;"
24     minimum_version="0.7.1">
25  &fontset-settings;
26
27<Style name="skiing">
28  <Rule>
29    <Filter>[piste:grooming] = 'backcountry'</Filter>
30    &maxscale_zoom13;
31    <LineSymbolizer>
32      <CssParameter name="stroke">&nordic-color;</CssParameter>
33      <CssParameter name="stroke-width">1.5</CssParameter>
34      <CssParameter name="stroke-dasharray">6,8</CssParameter>
35    </LineSymbolizer>
36  </Rule>
37  <Rule>
38    <Filter>[piste:grooming] = 'scooter'</Filter>
39    &maxscale_zoom11;
40    <LineSymbolizer>
41      <CssParameter name="stroke">&nordic-color;</CssParameter>
42      <CssParameter name="stroke-width">1.5</CssParameter>
43      <CssParameter name="stroke-dasharray">20,3</CssParameter>
44    </LineSymbolizer>
45  </Rule>
46  <Rule>
47    <Filter>[piste:type] = 'nordic' and not ([piste:grooming] = 'backcountry' or [piste:grooming] = 'scooter')</Filter>
48    &maxscale_zoom11;
49    <LineSymbolizer>
50      <CssParameter name="stroke">&nordic-color;</CssParameter>
51      <CssParameter name="stroke-width">2</CssParameter>
52    </LineSymbolizer>
53  </Rule>
54  <Rule>
55    <Filter>[piste:type] = 'nordic' and [lit]='yes'</Filter>
56    &maxscale_zoom13;
57    <LineSymbolizer>
58      <CssParameter name="stroke">&nordic-color;</CssParameter>
59      <CssParameter name="stroke-width">6</CssParameter>
60      <CssParameter name="stroke-dasharray">1,21</CssParameter>
61      <CssParameter name="stroke-linejoin">round</CssParameter>
62      <CssParameter name="stroke-linecap">round</CssParameter>
63    </LineSymbolizer>
64  </Rule>
65
66  <Rule>
67    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
68    &maxscale_zoom12;
69    <LineSymbolizer>
70      <CssParameter name="stroke">#00A245</CssParameter>
71      <CssParameter name="stroke-width">1.5</CssParameter>
72      <CssParameter name="stroke-opacity">0.65</CssParameter>
73    </LineSymbolizer>
74  </Rule>
75  <Rule>
76    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
77    &maxscale_zoom12;
78    <LineSymbolizer>
79      <CssParameter name="stroke">#00A4DF</CssParameter>
80      <CssParameter name="stroke-width">1.5</CssParameter>
81      <CssParameter name="stroke-opacity">0.65</CssParameter>
82    </LineSymbolizer>
83  </Rule>
84  <Rule>
85    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
86    &maxscale_zoom12;
87    <LineSymbolizer>
88      <CssParameter name="stroke">#E70019</CssParameter>
89      <CssParameter name="stroke-width">1.5</CssParameter>
90      <CssParameter name="stroke-opacity">0.65</CssParameter>
91    </LineSymbolizer>
92  </Rule>
93  <Rule>
94    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
95    &maxscale_zoom12;
96    <LineSymbolizer>
97      <CssParameter name="stroke">#17180D</CssParameter>
98      <CssParameter name="stroke-width">1.5</CssParameter>
99      <CssParameter name="stroke-opacity">0.65</CssParameter>
100    </LineSymbolizer>
101<!-- Expert orange #FF8040 -->
102  </Rule>
103  <Rule>
104    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
105    &maxscale_zoom12;
106    <LineSymbolizer>
107      <CssParameter name="stroke">#F6E760</CssParameter>
108      <CssParameter name="stroke-width">1.5</CssParameter>
109      <CssParameter name="stroke-opacity">0.65</CssParameter>
110    </LineSymbolizer>
111  </Rule>
112
113  <Rule>
114    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
115    &maxscale_zoom14;
116    <LineSymbolizer>
117      <CssParameter name="stroke">#00A245</CssParameter>
118      <CssParameter name="stroke-width">5</CssParameter>
119      <CssParameter name="stroke-opacity">0.65</CssParameter>
120    </LineSymbolizer>
121  </Rule>
122  <Rule>
123    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
124    &maxscale_zoom14;
125    <LineSymbolizer>
126      <CssParameter name="stroke">#00A4DF</CssParameter>
127      <CssParameter name="stroke-width">5</CssParameter>
128      <CssParameter name="stroke-opacity">0.65</CssParameter>
129    </LineSymbolizer>
130  </Rule>
131  <Rule>
132    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
133    &maxscale_zoom14;
134    <LineSymbolizer>
135      <CssParameter name="stroke">#E70019</CssParameter>
136      <CssParameter name="stroke-width">5</CssParameter>
137      <CssParameter name="stroke-opacity">0.65</CssParameter>
138    </LineSymbolizer>
139  </Rule>
140  <Rule>
141    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
142    &maxscale_zoom14;
143    <LineSymbolizer>
144      <CssParameter name="stroke">#17180D</CssParameter>
145      <CssParameter name="stroke-width">5</CssParameter>
146      <CssParameter name="stroke-opacity">0.65</CssParameter>
147    </LineSymbolizer>
148  </Rule>
149  <Rule>
150    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
151    &maxscale_zoom14;
152    <LineSymbolizer>
153      <CssParameter name="stroke">#F6E760</CssParameter>
154      <CssParameter name="stroke-width">5</CssParameter>
155      <CssParameter name="stroke-opacity">0.65</CssParameter>
156    </LineSymbolizer>
157  </Rule>
158
159  <Rule>
160    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
161    &maxscale_zoom15;
162    <LineSymbolizer>
163      <CssParameter name="stroke">#00A245</CssParameter>
164      <CssParameter name="stroke-width">7.5</CssParameter>
165      <CssParameter name="stroke-opacity">0.65</CssParameter>
166    </LineSymbolizer>
167  </Rule>
168  <Rule>
169    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
170    &maxscale_zoom15;
171    <LineSymbolizer>
172      <CssParameter name="stroke">#00A4DF</CssParameter>
173      <CssParameter name="stroke-width">7.5</CssParameter>
174      <CssParameter name="stroke-opacity">0.65</CssParameter>
175    </LineSymbolizer>
176  </Rule>
177  <Rule>
178    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
179    &maxscale_zoom15;
180    <LineSymbolizer>
181      <CssParameter name="stroke">#E70019</CssParameter>
182      <CssParameter name="stroke-width">7.5</CssParameter>
183      <CssParameter name="stroke-opacity">0.65</CssParameter>
184    </LineSymbolizer>
185  </Rule>
186  <Rule>
187    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
188    &maxscale_zoom15;
189    <LineSymbolizer>
190      <CssParameter name="stroke">#17180D</CssParameter>
191      <CssParameter name="stroke-width">7.5</CssParameter>
192      <CssParameter name="stroke-opacity">0.65</CssParameter>
193    </LineSymbolizer>
194  </Rule>
195  <Rule>
196    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
197    &maxscale_zoom15;
198    <LineSymbolizer>
199      <CssParameter name="stroke">#F6E760</CssParameter>
200      <CssParameter name="stroke-width">7.5</CssParameter>
201      <CssParameter name="stroke-opacity">0.65</CssParameter>
202    </LineSymbolizer>
203  </Rule>
204
205</Style>
206
207<Style name="symbols-winter">
208  <Rule>
209    &maxscale_zoom13;
210    <Filter>[leisure]='ski_playground'</Filter>
211    <PointSymbolizer file="&symbols;/skiplayground.png"
212       type="png" width="15" height="15"
213       allow_overlap="false"/>
214  </Rule>
215  <Rule>
216    &maxscale_zoom13;
217    <Filter>[sport]='biathlon'</Filter>
218    <PointSymbolizer file="&symbols;/biathlon.png"
219       type="png" width="15" height="15"
220       allow_overlap="false"/>
221  </Rule>
222  <Rule>
223    &maxscale_zoom13;
224    <Filter>[sport]='ski_jump_take_off'</Filter>
225    <PointSymbolizer file="&symbols;/skijump.png"
226       type="png" width="15" height="15"
227       allow_overlap="false"/>
228  </Rule>
229</Style>
230
231&layer-world;
232&layer-landscape;
233&layer-linefeatures;
234&layer-buildings;
235&layer-roads;
236&layer-nationalpark;
237
238<Layer name="skiing" status="on" srs="&osm2pgsql_projection;">
239    <StyleName>skiing</StyleName>
240    <Datasource>
241      <Parameter name="table">
242      (select way,"piste:type","piste:grooming","piste:difficulty",route,lit
243       from &prefix;_line
244       where "piste:type" in ('nordic','downhill')
245          or "piste:grooming" is not null
246          or route='ski'
247      ) as skiing
248      </Parameter>
249      &datasource-settings;
250   </Datasource>
251</Layer>
252
253&layer-roadnames;
254&layer-powerlines;
255&layer-symbols-facilities;
256&layer-symbols-hiking;
257
258<Layer name="symbols-winter" status="on" srs="&osm2pgsql_projection;">
259  <StyleName>symbols-winter</StyleName>
260  <Datasource>
261    <Parameter name="table">
262    (select *
263    from &prefix;_point
264    where sport is not null
265       or landuse='winter_sports'
266       or leisure='ski_playground'
267    ) as symbols</Parameter>
268    &datasource-settings;
269  </Datasource>
270</Layer>
271<Layer name="symbols-winter-poly" status="on" srs="&osm2pgsql_projection;">
272  <StyleName>symbols-winter</StyleName>
273  <Datasource>
274    <Parameter name="table">
275    (select *
276    from &prefix;_polygon
277    where sport is not null
278       or landuse='winter_sports'
279       or leisure='ski_playground'
280    ) as symbols</Parameter>
281    &datasource-settings;
282  </Datasource>
283</Layer>
284
285&layer-areatext;
286&layer-placenames;
287</Map>
Note: See TracBrowser for help on using the repository browser.