source: subversion/applications/rendering/nor-hikingmap/layer-symbols-facilities.xml.ent @ 34655

Last change on this file since 34655 was 29928, checked in by vibrog, 6 years ago

Change zoom visibility of attraction

File size: 6.9 KB
Line 
1<Style name="symbols-facilities">
2
3  <Rule>
4    &maxscale_zoom15;
5    <Filter>[sport]='motor' or [sport]='motocross' or [highway]='raceway'</Filter>
6    <PointSymbolizer file="&symbols;/motorsport.png"/>
7  </Rule>
8  <Rule>
9    &maxscale_zoom14;
10    <Filter>[leisure]='golf_course' or [sport]='golf'</Filter>
11    <PointSymbolizer file="&symbols;/golfcourse.png"/>
12  </Rule>
13  <Rule>
14    &maxscale_zoom14;
15    <Filter>[sport]='shooting'</Filter>
16    <PointSymbolizer file="&symbols;/shootingrange.png"/>
17  </Rule>
18  <Rule>
19    &maxscale_zoom15;
20    <Filter>[leisure]='fishing'</Filter>
21    <PointSymbolizer file="&symbols;/fishing.png"/>
22  </Rule>
23
24  <Rule>
25    &maxscale_zoom14;
26    <Filter>[tourism]='camp_site'</Filter>
27    <PointSymbolizer file="&symbols;/campsite.png"/>
28  </Rule>
29  <Rule>
30    &maxscale_zoom13;
31    <Filter>[tourism]='caravan_site'</Filter>
32    <PointSymbolizer file="&symbols;/caravansite.png"/>
33  </Rule>
34
35  <Rule>
36    &maxscale_zoom16;
37    <Filter>[amenity]='drinking_water' or [natural]='spring' or [waterway]='water_point'</Filter>
38    <PointSymbolizer file="&symbols;/drinkingwater.png"/>
39  </Rule>
40  <Rule>
41    &maxscale_zoom16;
42    <Filter>[amenity]='restaurant' or [amenity]='fast_food' or [amenity]='food_court'</Filter>
43    <PointSymbolizer file="&symbols;/restaurant.png"/>
44  </Rule>
45
46  <Rule>
47    &maxscale_zoom16;
48    <Filter>[tourism]='information'</Filter>
49    <PointSymbolizer file="&symbols;/information.png"/>
50  </Rule>
51  <Rule>
52    &maxscale_zoom15;
53    <Filter>[tourism]='hotel' or [tourism]='motel' or [tourism]='guest_house'</Filter>
54    <PointSymbolizer file="&symbols;/hotel.png"/>
55  </Rule>
56  <Rule>
57    &maxscale_zoom15;
58    <Filter>[tourism]='hostel'</Filter>
59    <PointSymbolizer file="&symbols;/hostel.png"/>
60  </Rule>
61  <Rule>
62    &maxscale_zoom15;
63    <Filter>[tourism]='chalet'</Filter>
64    <PointSymbolizer file="&symbols;/chalet.png"/>
65  </Rule>
66
67  <Rule>
68    &maxscale_zoom16;
69    <Filter>[amenity]='taxi'</Filter>
70    <PointSymbolizer file="&symbols;/taxi.png"/>
71  </Rule>
72  <Rule>
73    &maxscale_zoom16;
74    <Filter>[railway]='subway_entrance'</Filter>
75    <PointSymbolizer file="&symbols;/subway.png"/>
76  </Rule>
77  <Rule>
78    &maxscale_zoom16;
79    <Filter>[amenity]='fuel'</Filter>
80    <PointSymbolizer file="&symbols;/fuel.png"/>
81  </Rule>
82  <Rule>
83    &maxscale_zoom16;
84    <Filter>[amenity]='telephone' or [amenity]='emergency_phone'</Filter>
85    <PointSymbolizer file="&symbols;/telephone.png"/>
86  </Rule>
87
88  <Rule>
89    &maxscale_zoom16;
90    <Filter>[amenity]='ferry_terminal'</Filter>
91    <PointSymbolizer file="&symbols;/ferry.png"/>
92  </Rule>
93  <Rule>
94    &maxscale_zoom16;
95    <Filter>[leisure]='marina'</Filter>
96    <PointSymbolizer file="&symbols;/marina.png"/>
97  </Rule>
98  <Rule>
99    &maxscale_zoom16;
100    <Filter>[leisure]='slipway'</Filter>
101    <PointSymbolizer file="&symbols;/slipway.png"/>
102  </Rule>
103
104  <Rule>
105    &maxscale_zoom16;
106    <Filter>[amenity]='pharmacy'</Filter>
107    <PointSymbolizer file="&symbols;/pharmacy.png"/>
108  </Rule>
109  <Rule>
110    &maxscale_zoom16;
111    <Filter>[amenity]='hospital'</Filter>
112    <PointSymbolizer file="&symbols;/hospital.png"/>
113  </Rule>
114  <Rule>
115    &maxscale_zoom16;
116    <Filter>[amenity]='doctors'</Filter>
117    <PointSymbolizer file="&symbols;/doctors.png"/>
118  </Rule>
119  <Rule>
120    &maxscale_zoom16;
121    <Filter>[amenity]='dentist'</Filter>
122    <PointSymbolizer file="&symbols;/dentist.png"/>
123  </Rule>
124
125  <Rule>
126    &maxscale_zoom16;
127    <Filter>[amenity]='theatre'</Filter>
128    <PointSymbolizer file="&symbols;/theatre.png"/>
129  </Rule>
130  <Rule>
131    &maxscale_zoom16;
132    <Filter>[amenity]='cinema'</Filter>
133    <PointSymbolizer file="&symbols;/cinema.png"/>
134  </Rule>
135  <Rule>
136    &maxscale_zoom16;
137    <Filter>[amenity]='community_centre' or [amenity]='arts_centre' or [leisure]='music_venue'</Filter>
138    <PointSymbolizer file="&symbols;/concerthall.png"/>
139  </Rule>
140  <Rule>
141    &maxscale_zoom16;
142    <Filter>[tourism]='museum'</Filter>
143    <PointSymbolizer file="&symbols;/museum.png"/>
144  </Rule>
145  <Rule>
146    &maxscale_zoom15;
147    <Filter>[tourism]='attraction'</Filter>
148    <PointSymbolizer file="&symbols;/attraction.png"/>
149  </Rule>
150
151  <Rule>
152    &maxscale_zoom16;
153    <Filter>([shop]='supermarket' or [shop]='convenience' or [shop]='mall') and not [amenity]='post_office'</Filter>
154    <PointSymbolizer file="&symbols;/groceries.png"/>
155  </Rule>
156  <Rule>
157    &maxscale_zoom16;
158    <Filter>[amenity]='post_office' and not ([shop]='supermarket' or [shop]='convenience')</Filter>
159    <PointSymbolizer file="&symbols;/postoffice.png"/>
160  </Rule>
161  <Rule>
162    &maxscale_zoom16;
163    <Filter>[amenity]='post_office' and ([shop]='convenience' or [shop]='supermarket')</Filter>
164    <PointSymbolizer file="&symbols;/groceries-postalservices.png"/>
165  </Rule>
166  <Rule>
167    &maxscale_zoom16;
168    <Filter>[shop]='kiosk' or [shop]='ice_cream'</Filter>
169    <PointSymbolizer file="&symbols;/kiosk.png"/>
170  </Rule>
171  <Rule>
172    &maxscale_zoom16;
173    <Filter>[shop]='alcohol' or [shop]='beverages'</Filter>
174    <PointSymbolizer file="&symbols;/alcohol.png"/>
175  </Rule>
176  <Rule>
177    &maxscale_zoom16;
178    <Filter>[amenity]='bank' or [amenity]='atm' or [amenity]='bureau_de_change'</Filter>
179    <PointSymbolizer file="&symbols;/bank.png"/>
180  </Rule>
181  <Rule>
182    &maxscale_zoom16;
183    <Filter>[amenity]='library'</Filter>
184    <PointSymbolizer file="&symbols;/library.png"/>
185  </Rule>
186  <Rule>
187    &maxscale_zoom16;
188    <Filter>[amenity]='police'</Filter>
189    <PointSymbolizer file="&symbols;/police.png"/>
190  </Rule>
191  <Rule>
192    &maxscale_zoom16;
193    <Filter>[amenity]='toilets'</Filter>
194    <PointSymbolizer file="&symbols;/toilets.png"/>
195  </Rule>
196  <Rule>
197    &maxscale_zoom16;
198    <Filter>[amenity]='waste_basket' or [amenity]='waste_disposal' or [amenity]='recycling'</Filter>
199    <PointSymbolizer file="&symbols;/waste.png"/>
200  </Rule>
201
202</Style>
203
204<Layer name="facilities" status="on" srs="&osm2pgsql_projection;">
205  <StyleName>symbols-facilities</StyleName>
206  <Datasource>
207    <Parameter name="table">
208    (select *
209    from &prefix;_point
210    where amenity is not null
211       or shop is not null
212       or sport is not null
213       or "natural" in ('spring')
214       or waterway='water_point'
215       or railway in ('station','subway_entrance','halt','stop')
216       or tourism in ('museum','attraction','hotel','motel','hostel','chalet','camp_site','caravan_site')
217       or leisure in ('golf_course','fishing','marina','slipway')
218    ) as facilities</Parameter>
219    &datasource-settings;
220  </Datasource>
221</Layer>
222<Layer name="facilities-poly" status="on" srs="&osm2pgsql_projection;">
223  <StyleName>symbols-facilities</StyleName>
224  <Datasource>
225    <Parameter name="table">
226    (select *
227    from &prefix;_polygon
228    where amenity is not null
229       or shop is not null
230       or sport is not null
231       or highway='raceway'
232       or tourism in ('museum','attraction','hotel','motel','hostel','chalet','camp_site','caravan_site')
233       or leisure in ('golf_course','fishing','marina')
234    ) as facilities</Parameter>
235    &datasource-settings;
236  </Datasource>
237</Layer>
Note: See TracBrowser for help on using the repository browser.