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

Last change on this file since 23298 was 23298, checked in by vibrog, 10 years ago

Show night time skiing (piste:type=nordic,lit=yes)

File size: 6.3 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_zoom14;
31    <LineSymbolizer>
32      <CssParameter name="stroke">&nordic-color;</CssParameter>
33      <CssParameter name="stroke-width">1.5</CssParameter>
34      <CssParameter name="stroke-dasharray">8,6</CssParameter>
35    </LineSymbolizer>
36  </Rule>
37  <Rule>
38    <Filter>[piste:grooming] = 'scooter'</Filter>
39    &maxscale_zoom12;
40    <LineSymbolizer>
41      <CssParameter name="stroke">&nordic-color;</CssParameter>
42      <CssParameter name="stroke-width">1.5</CssParameter>
43      <CssParameter name="stroke-dasharray">20,4</CssParameter>
44    </LineSymbolizer>
45  </Rule>
46  <Rule>
47    <Filter>[piste:type] = 'nordic' and not ([piste:grooming] = 'backcountry' or [piste:grooming] = 'scooter')</Filter>
48    &maxscale_zoom12;
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_zoom12;
57    <LineSymbolizer>
58      <CssParameter name="stroke">&nordic-color;</CssParameter>
59      <CssParameter name="stroke-width">5</CssParameter>
60      <CssParameter name="stroke-dasharray">1,18</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_zoom13;
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_zoom13;
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_zoom13;
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_zoom13;
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_zoom13;
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</Style>
113
114<Style name="symbols-winter">
115  <Rule>
116    &maxscale_zoom13;
117    <Filter>[leisure]='ski_playground'</Filter>
118    <PointSymbolizer file="&symbols;/skiplayground.png"
119       type="png" width="15" height="15"
120       allow_overlap="false"/>
121  </Rule>
122  <Rule>
123    &maxscale_zoom13;
124    <Filter>[sport]='biathlon'</Filter>
125    <PointSymbolizer file="&symbols;/biathlon.png"
126       type="png" width="15" height="15"
127       allow_overlap="false"/>
128  </Rule>
129  <Rule>
130    &maxscale_zoom13;
131    <Filter>[sport]='ski_jump_take_off'</Filter>
132    <PointSymbolizer file="&symbols;/skijump.png"
133       type="png" width="15" height="15"
134       allow_overlap="false"/>
135  </Rule>
136</Style>
137
138&layer-world;
139&layer-landscape;
140&layer-linefeatures;
141&layer-buildings;
142&layer-roads;
143&layer-nationalpark;
144
145<Layer name="skiing" status="on" srs="&osm2pgsql_projection;">
146    <StyleName>skiing</StyleName>
147    <Datasource>
148      <Parameter name="table">
149      (select way,"piste:type","piste:grooming","piste:difficulty",route,lit
150       from &prefix;_line
151       where "piste:type" in ('nordic','downhill')
152          or "piste:grooming" is not null
153          or route='ski'
154      ) as skiing
155      </Parameter>
156      &datasource-settings;
157   </Datasource>
158</Layer>
159
160&layer-roadnames;
161&layer-powerlines;
162&layer-symbols-facilities;
163&layer-symbols-hiking;
164
165<Layer name="symbols-winter" status="on" srs="&osm2pgsql_projection;">
166  <StyleName>symbols-winter</StyleName>
167  <Datasource>
168    <Parameter name="table">
169    (select *
170    from &prefix;_point
171    where sport is not null
172       or landuse='winter_sports'
173       or leisure='ski_playground'
174    ) as symbols</Parameter>
175    &datasource-settings;
176  </Datasource>
177</Layer>
178<Layer name="symbols-winter-poly" status="on" srs="&osm2pgsql_projection;">
179  <StyleName>symbols-winter</StyleName>
180  <Datasource>
181    <Parameter name="table">
182    (select *
183    from &prefix;_polygon
184    where sport is not null
185       or landuse='winter_sports'
186       or leisure='ski_playground'
187    ) as symbols</Parameter>
188    &datasource-settings;
189  </Datasource>
190</Layer>
191
192&layer-areatext;
193&layer-placenames;
194</Map>
Note: See TracBrowser for help on using the repository browser.