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

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

Change zoom visibility of attraction

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