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

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

Initial commit: Norwegian hiking map styles

File size: 4.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  &fontset-settings;
25
26<Style name="skiing">
27  <Rule>
28    <Filter>[piste:grooming] = 'backcountry'</Filter>
29    &maxscale_zoom14;
30    <LineSymbolizer>
31      <CssParameter name="stroke">&nordic-color;</CssParameter>
32      <CssParameter name="stroke-width">1.5</CssParameter>
33      <CssParameter name="stroke-dasharray">8,6</CssParameter>
34    </LineSymbolizer>
35  </Rule>
36  <Rule>
37    <Filter>[piste:grooming] = 'scooter'</Filter>
38    &maxscale_zoom12;
39    <LineSymbolizer>
40      <CssParameter name="stroke">&nordic-color;</CssParameter>
41      <CssParameter name="stroke-width">1.5</CssParameter>
42      <CssParameter name="stroke-dasharray">20,4</CssParameter>
43    </LineSymbolizer>
44  </Rule>
45  <Rule>
46    <Filter>[piste:type] = 'nordic'</Filter>
47    &maxscale_zoom12;
48    <LineSymbolizer>
49      <CssParameter name="stroke">&nordic-color;</CssParameter>
50      <CssParameter name="stroke-width">2</CssParameter>
51    </LineSymbolizer>
52  </Rule>
53<!--
54    <Filter>[lit]='yes'</Filter>
55-->
56
57  <Rule>
58    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
59    &maxscale_zoom13;
60    <LineSymbolizer>
61      <CssParameter name="stroke">#00A245</CssParameter>
62      <CssParameter name="stroke-width">1.5</CssParameter>
63      <CssParameter name="stroke-opacity">0.65</CssParameter>
64    </LineSymbolizer>
65  </Rule>
66  <Rule>
67    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
68    &maxscale_zoom13;
69    <LineSymbolizer>
70      <CssParameter name="stroke">#00A4DF</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] = 'intermediate'</Filter>
77    &maxscale_zoom13;
78    <LineSymbolizer>
79      <CssParameter name="stroke">#E70019</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] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
86    &maxscale_zoom13;
87    <LineSymbolizer>
88      <CssParameter name="stroke">#17180D</CssParameter>
89      <CssParameter name="stroke-width">1.5</CssParameter>
90      <CssParameter name="stroke-opacity">0.65</CssParameter>
91    </LineSymbolizer>
92<!-- Expert orange #FF8040 -->
93  </Rule>
94  <Rule>
95    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
96    &maxscale_zoom13;
97    <LineSymbolizer>
98      <CssParameter name="stroke">#F6E760</CssParameter>
99      <CssParameter name="stroke-width">1.5</CssParameter>
100      <CssParameter name="stroke-opacity">0.65</CssParameter>
101    </LineSymbolizer>
102  </Rule>
103
104</Style>
105
106&layer-world;
107&layer-landscape;
108&layer-linefeatures;
109&layer-roads;
110&layer-buildings;
111&layer-nationalpark;
112
113<Layer name="skiing" status="on" srs="&osm2pgsql_projection;">
114    <StyleName>skiing</StyleName>
115    <Datasource>
116      <Parameter name="table">
117      (select way,"piste:type","piste:grooming","piste:difficulty",route
118       from &prefix;_line
119       where "piste:type" in ('nordic','downhill')
120          or "piste:grooming" is not null
121          or route='ski'
122      ) as skiing
123      </Parameter>
124      &datasource-settings;
125   </Datasource>
126</Layer>
127
128&layer-powerlines;
129&layer-symbols-hiking;
130&layer-areatext;
131&layer-placenames;
132</Map>
Note: See TracBrowser for help on using the repository browser.