source: subversion/applications/rendering/mapnik-german/osm-de.xml @ 28170

Last change on this file since 28170 was 28170, checked in by giggls, 3 years ago

render tracks of tracktype=grade1 more similar to footway and cycleway
(brown casing)

  • Property svn:eol-style set to native
File size: 175.0 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE Map [
3<!ENTITY % entities SYSTEM "inc-de/entities.xml.inc">
4%entities;
5]>
6<Map background-color="#abd0d0" srs="&srs900913;" minimum-version="2.0.0">
7  &fontset-settings;
8<Style name="turning_circle-casing">
9    <Rule>
10      &maxscale_zoom15;
11      &minscale_zoom16;
12      <Filter>[int_tc_type]='tertiary'</Filter>
13      <PointSymbolizer file="&symbols;/turning_circle-tert-casing.18.png" allow-overlap="true" ignore-placement="true"/>
14    </Rule>
15    <Rule>
16      &maxscale_zoom15;
17      &minscale_zoom15;
18      <Filter>[int_tc_type]='residential' or [int_tc_type]='unclassified'</Filter>
19      <PointSymbolizer file="&symbols;/turning_circle-uncl-casing.14.png" allow-overlap="true" ignore-placement="true"/>
20    </Rule>
21    <Rule>
22      &maxscale_zoom15;
23      &minscale_zoom15;
24      <Filter>[int_tc_type]='living_street'</Filter>
25      <PointSymbolizer file="&symbols;/turning_circle-uncl-fill.14.png" allow-overlap="true" ignore-placement="true"/>
26    </Rule>
27    <Rule>
28      &maxscale_zoom16;
29      &minscale_zoom16;
30      <Filter>[int_tc_type]='residential' or [int_tc_type]='unclassified'</Filter>
31      <PointSymbolizer file="&symbols;/turning_circle-uncl-casing.18.png" allow-overlap="true" ignore-placement="true"/>
32    </Rule>
33    <Rule>
34      &maxscale_zoom16;
35      &minscale_zoom16;
36      <Filter>[int_tc_type]='service'</Filter>
37      <PointSymbolizer file="&symbols;/turning_circle-uncl-casing.14.png" allow-overlap="true" ignore-placement="true"/>
38    </Rule>
39    <Rule>
40      &maxscale_zoom16;
41      &minscale_zoom16;
42      <Filter>[int_tc_type]='living_street'</Filter>
43      <PointSymbolizer file="&symbols;/turning_circle-uncl-fill.18.png" allow-overlap="true" ignore-placement="true"/>
44    </Rule>
45    <Rule>
46      &maxscale_zoom17;
47      <Filter>[int_tc_type]='tertiary'</Filter>
48      <PointSymbolizer file="&symbols;/turning_circle-tert-casing.24.png" allow-overlap="true" ignore-placement="true"/>
49    </Rule>
50    <Rule>
51      &maxscale_zoom17;
52      <Filter>[int_tc_type]='residential' or [int_tc_type]='unclassified'</Filter>
53      <PointSymbolizer file="&symbols;/turning_circle-uncl-casing.24.png" allow-overlap="true" ignore-placement="true"/>
54    </Rule>
55    <Rule>
56      &maxscale_zoom17;
57      <Filter>[int_tc_type]='service'</Filter>
58      <PointSymbolizer file="&symbols;/turning_circle-uncl-casing.16.png" allow-overlap="true" ignore-placement="true"/>
59    </Rule>
60    <Rule>
61      &maxscale_zoom17;
62      <Filter>[int_tc_type]='living_street'</Filter>
63      <PointSymbolizer file="&symbols;/turning_circle-uncl-fill.24.png" allow-overlap="true" ignore-placement="true"/>
64    </Rule>
65</Style>
66<Style name="turning_circle-fill">
67    <Rule>
68      &maxscale_zoom15;
69      &minscale_zoom16;
70      <Filter>[int_tc_type]='tertiary'</Filter>
71      <PointSymbolizer file="&symbols;/turning_circle-tert-fill.16.png" allow-overlap="true" ignore-placement="true"/>
72    </Rule>
73    <Rule>
74      &maxscale_zoom15;
75      &minscale_zoom15;
76      <Filter>[int_tc_type]='residential' or [int_tc_type]='unclassified'</Filter>
77      <PointSymbolizer file="&symbols;/turning_circle-uncl-fill.12.png" allow-overlap="true" ignore-placement="true"/>
78    </Rule>
79    <Rule>
80      &maxscale_zoom15;
81      &minscale_zoom15;
82      <Filter>[int_tc_type]='living_street'</Filter>
83      <PointSymbolizer file="&symbols;/turning_circle-livs-fill.12.png" allow-overlap="true" ignore-placement="true"/>
84    </Rule>
85    <Rule>
86      &maxscale_zoom16;
87      &minscale_zoom16;
88      <Filter>[int_tc_type]='residential' or [int_tc_type]='unclassified'</Filter>
89      <PointSymbolizer file="&symbols;/turning_circle-uncl-fill.16.png" allow-overlap="true" ignore-placement="true"/>
90    </Rule>
91    <Rule>
92      &maxscale_zoom16;
93      &minscale_zoom16;
94      <Filter>[int_tc_type]='service'</Filter>
95      <PointSymbolizer file="&symbols;/turning_circle-uncl-fill.12.png" allow-overlap="true" ignore-placement="true"/>
96    </Rule>
97    <Rule>
98      &maxscale_zoom16;
99      &minscale_zoom16;
100      <Filter>[int_tc_type]='living_street'</Filter>
101      <PointSymbolizer file="&symbols;/turning_circle-livs-fill.16.png" allow-overlap="true" ignore-placement="true"/>
102    </Rule>
103    <Rule>
104      &maxscale_zoom17;
105      <Filter>[int_tc_type]='tertiary'</Filter>
106      <PointSymbolizer file="&symbols;/turning_circle-tert-fill.22.png" allow-overlap="true" ignore-placement="true"/>
107    </Rule>
108    <Rule>
109      &maxscale_zoom17;
110      <Filter>[int_tc_type]='residential' or [int_tc_type]='unclassified'</Filter>
111      <PointSymbolizer file="&symbols;/turning_circle-uncl-fill.22.png" allow-overlap="true" ignore-placement="true"/>
112    </Rule>
113    <Rule>
114      &maxscale_zoom17;
115      <Filter>[int_tc_type]='service'</Filter>
116      <PointSymbolizer file="&symbols;/turning_circle-uncl-fill.14.png" allow-overlap="true" ignore-placement="true"/>
117    </Rule>
118    <Rule>
119      &maxscale_zoom17;
120      <Filter>[int_tc_type]='living_street'</Filter>
121      <PointSymbolizer file="&symbols;/turning_circle-livs-fill.22.png" allow-overlap="true" ignore-placement="true"/>
122    </Rule>
123</Style>
124<Style name="highway-area-casing">
125   <Rule>
126      <Filter>[highway] = 'residential' or [highway]='unclassified'</Filter>
127      &maxscale_zoom14;
128      <LineSymbolizer stroke="#999" stroke-width="1"/>
129   </Rule>
130   <Rule>
131      <Filter>[highway] = 'pedestrian' or [highway]='service' or ([highway]='path' and not [foot] = 'designated')</Filter>
132      &maxscale_zoom14;
133      <LineSymbolizer stroke="grey" stroke-width="1"/>
134   </Rule>
135   <Rule>
136     <Filter>([highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')) and not [tunnel]='yes'</Filter>
137     &maxscale_zoom15;
138     <LineSymbolizer stroke="grey" stroke-width="1" stroke-linejoin="round" stroke-linecap="round"/>
139   </Rule> 
140   <Rule>
141     <Filter>([highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')) and not [tunnel] = 'yes'</Filter>
142      &maxscale_zoom15;
143     <LineSymbolizer stroke="#f1f1f1" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"/>
144   </Rule>
145   <Rule>
146      <Filter>[highway] = 'track'</Filter>
147      &maxscale_zoom14;
148      <LineSymbolizer stroke="#996600" stroke-width="2"/>
149   </Rule>
150    <Rule>
151      <Filter>[highway] = 'platform' or [railway] = 'platform'</Filter>
152      &maxscale_zoom16;
153      <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="2" stroke-linecap="round"/>
154    </Rule>
155</Style>
156<Style name="highway-area-fill">
157    <Rule>
158      <Filter>[highway] = 'living_street'</Filter>
159      &maxscale_zoom14;
160      <PolygonSymbolizer fill="#ccc"/>
161   </Rule>
162   <Rule>
163      <Filter>[highway] = 'residential' or [highway]='unclassified' or [highway]='service'</Filter>
164      &maxscale_zoom14;
165      <PolygonSymbolizer fill="#fff"/>
166   </Rule>
167   <Rule>
168      <Filter>[highway] = 'pedestrian' or ([highway]='path' and not [foot] = 'designated')</Filter>
169      &maxscale_zoom14;
170      <PolygonSymbolizer fill="#ededed"/>
171   </Rule>
172   <Rule>
173     <Filter>([highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')) and not [tunnel]='yes'</Filter>
174     &maxscale_zoom15;
175     <LineSymbolizer stroke="#ededed" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/>
176   </Rule>   
177   <Rule>
178     <Filter>([highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')) and not [tunnel] = 'yes'</Filter>
179     &maxscale_zoom15;
180     <LineSymbolizer stroke="#3e6eaf" stroke-width="2.6" stroke-linejoin="round" stroke-linecap="round"/>
181   </Rule>
182   <Rule>
183      <Filter>[highway] = 'track'</Filter>
184      &maxscale_zoom14;
185      <PolygonSymbolizer fill="#dfcc66"/>
186   </Rule>
187    <Rule>
188      <Filter>[highway] = 'platform' or [railway] = 'platform'</Filter>
189      &maxscale_zoom16;
190      <PolygonSymbolizer gamma=".65" fill="#bbbbbb"/>
191    </Rule>
192    <Rule>
193      <Filter>[aeroway] = 'runway'</Filter>
194      &maxscale_zoom11;
195      <PolygonSymbolizer fill="#bbc"/>
196    </Rule>
197    <Rule>
198      <Filter>[aeroway] = 'taxiway'</Filter>
199      &maxscale_zoom13;
200      <PolygonSymbolizer fill="#bbc"/>
201    </Rule>
202    <Rule>
203      <Filter>[aeroway] = 'helipad'</Filter>
204      &maxscale_zoom16;
205      <PolygonSymbolizer fill="#bbc"/>
206    </Rule>
207</Style>
208<Style name="landuse_overlay">
209    <Rule>
210      &maxscale_zoom10;
211      &minscale_zoom18;
212      <Filter>[landuse]='military'</Filter>
213      <PolygonPatternSymbolizer file="&symbols;/military_red_hz2.png" />
214      <LineSymbolizer stroke="#f55" stroke-width="3" stroke-opacity="0.329"/>
215    </Rule>
216    <Rule>
217      <Filter>[leisure] = 'nature_reserve'</Filter>
218      &maxscale_zoom10;
219      &minscale_zoom13;
220      <PolygonPatternSymbolizer file="&symbols;/nature_reserve5.png" />
221      <LineSymbolizer stroke="#6c3" stroke-width="0.5"/>
222    </Rule>
223    <Rule>
224      <Filter>[leisure] = 'nature_reserve'</Filter>
225      &maxscale_zoom14;
226      <PolygonPatternSymbolizer file="&symbols;/nature_reserve6.png" />
227      <LineSymbolizer stroke="#6c3" stroke-width="1"/>
228    </Rule>
229</Style>
230<Style name="area-text">
231    <Rule>
232      <Filter>[way_area] &gt;= 150000</Filter>
233      &maxscale_zoom14;
234      <TextSymbolizer size="10" fill="#4c8056" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
235    </Rule>
236    <Rule>
237      <Filter>[way_area] &gt;= 80000 and [way_area] &lt; 150000</Filter>
238      &maxscale_zoom15;
239      <TextSymbolizer size="10" fill="#4c8056" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
240    </Rule>
241    <Rule>
242      <Filter>[way_area] &gt;= 20000 and [way_area] &lt; 80000</Filter>
243      &maxscale_zoom16;
244      <TextSymbolizer size="10" fill="#4c8056" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
245    </Rule>
246    <Rule>
247      <Filter>[way_area] &lt; 20000</Filter>
248      &maxscale_zoom17;
249      <TextSymbolizer size="10" fill="#4c8056" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
250    </Rule>
251</Style>
252<Style name="highway-junctions">
253    <Rule>
254      &maxscale_zoom12;
255      &minscale_zoom12;
256      <TextSymbolizer size="9" fill="#234fa9" minimum-distance="2" fontset-name="oblique-fonts" halo-radius="1" wrap-width="12">[ref]</TextSymbolizer>
257    </Rule>
258    <Rule>
259      &maxscale_zoom13;
260      &minscale_zoom14;
261      <TextSymbolizer size="9" fill="#234fa9" minimum-distance="2" fontset-name="oblique-fonts" halo-radius="1" wrap-width="12">[ref]</TextSymbolizer>
262      <TextSymbolizer size="8" fill="#234fa9" dy="-8" minimum-distance="2" fontset-name="oblique-fonts" halo-radius="1" wrap-width="2" wrap-character=";">[name]</TextSymbolizer>
263    </Rule>
264    <Rule>
265      &maxscale_zoom15;
266      <TextSymbolizer size="12" fill="#234fa9" minimum-distance="2" fontset-name="oblique-fonts" halo-radius="1" wrap-width="12">[ref]</TextSymbolizer>
267      <TextSymbolizer size="11" fill="#234fa9" dy="-10" minimum-distance="2" fontset-name="oblique-fonts" halo-radius="1" wrap-width="2" wrap-character=";">[name]</TextSymbolizer>
268    </Rule>
269</Style>
270<Style name="text">
271    <Rule>
272      <Filter>[place] = 'island'</Filter>
273      &maxscale_zoom12;
274      &minscale_zoom18;
275      <TextSymbolizer size="9" fill="#000" dy="0" fontset-name="oblique-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
276    </Rule>
277    <Rule>
278      <Filter>[amenity]='pub' or [amenity]='restaurant' or [amenity]='cafe' or [amenity]='fast_food' or [amenity]='biergarten'</Filter>
279      &maxscale_zoom17;
280      <TextSymbolizer size="10" fill="#734a08" dy="9" fontset-name="bold-fonts" halo-radius="1" wrap-width="34" placement="interior">[name]</TextSymbolizer>
281    </Rule>
282    <Rule>
283      <Filter>[amenity]='bar'</Filter>
284      &maxscale_zoom17;
285      <TextSymbolizer size="10" fill="#734a08" dy="11" fontset-name="bold-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
286    </Rule>
287    <Rule>
288      <Filter>[amenity]='library' or [amenity]='theatre' or [amenity]='courthouse'</Filter>
289      &maxscale_zoom17;
290      <TextSymbolizer size="10" fill="#734a08" dy="12" fontset-name="bold-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
291    </Rule>
292    <Rule>
293      <Filter>[amenity]='cinema'</Filter>
294      &maxscale_zoom17;
295      <TextSymbolizer size="10" fill="#734a08" dy="14" fontset-name="bold-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
296    </Rule>
297    <Rule>
298      <Filter>[amenity]='parking' and ([access] = 'public' or not [access] != '')</Filter>
299      &maxscale_zoom17;
300      <TextSymbolizer size="9" fill="#0066ff" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="34" placement="interior">[name]</TextSymbolizer>
301    </Rule>
302    <Rule>
303      <Filter>[amenity]='parking' and ([access] != '' and not [access] = 'public')</Filter>
304      &maxscale_zoom17;
305      <TextSymbolizer size="9" fill="#66ccaf" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="34" placement="interior">[name]</TextSymbolizer>
306    </Rule>
307     <Rule>
308      <Filter>[amenity] = 'police'</Filter>
309      &maxscale_zoom17;
310      <TextSymbolizer size="10" fill="#734a08" dy="10" fontset-name="book-fonts" halo-radius="1" wrap-width="30" placement="interior">[name]</TextSymbolizer>
311    </Rule>
312    <Rule>
313      <Filter>[amenity] = 'fire_station'</Filter>
314      &maxscale_zoom17;
315      <TextSymbolizer size="10" fill="#734a08" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="30" placement="interior">[name]</TextSymbolizer>
316    </Rule>
317     <Rule>
318      <Filter>[amenity] = 'place_of_worship'</Filter>
319      &maxscale_zoom17;
320      <TextSymbolizer size="10" fill="#000033" dy="11" fontset-name="book-fonts" halo-radius="1" wrap-width="30" placement="interior">[name]</TextSymbolizer>
321    </Rule>
322    <Rule>
323      <Filter>[natural] = 'peak'</Filter>
324      &maxscale_zoom13;
325      <TextSymbolizer size="10" fill="brown" dy="5" fontset-name="book-fonts" halo-radius="1" placement="interior">[name]</TextSymbolizer>
326    </Rule>
327    <Rule>
328      <Filter>[natural] = 'peak' and not [name] != ''</Filter>
329      &maxscale_zoom14;
330      <TextSymbolizer size="9" fill="brown" dy="6" fontset-name="oblique-fonts" halo-radius="1" placement="interior">[ele]</TextSymbolizer>
331    </Rule>
332    <Rule>
333      <Filter>[natural] = 'peak' and [name] != ''</Filter>
334      &maxscale_zoom14;
335      <TextSymbolizer size="9" fill="brown" dy="18" fontset-name="oblique-fonts" halo-radius="1" placement="interior">[ele]</TextSymbolizer>
336    </Rule>
337    <Rule>
338      <Filter>[natural] = 'volcano'</Filter>
339      &maxscale_zoom13;
340      <TextSymbolizer size="10" fill="brown" dy="5" fontset-name="book-fonts" halo-radius="1" placement="interior">[name]</TextSymbolizer>
341    </Rule>
342    <Rule>
343      <Filter>[natural] = 'volcano' and not [name] != ''</Filter>
344      &maxscale_zoom14;
345      <TextSymbolizer size="9" fill="brown" dy="6" fontset-name="oblique-fonts" halo-radius="1" placement="interior">[ele]</TextSymbolizer>
346    </Rule>
347    <Rule>
348      <Filter>[natural] = 'volcano' and [name] != ''</Filter>
349      &maxscale_zoom14;
350      <TextSymbolizer size="9" fill="brown" dy="16" fontset-name="oblique-fonts" halo-radius="1" placement="interior">[ele]</TextSymbolizer>
351    </Rule>
352    <Rule>
353      <Filter>[natural] = 'cave_entrance'</Filter>
354      &maxscale_zoom15;
355      <TextSymbolizer size="10" fill="brown" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
356    </Rule>
357    <Rule>
358      <Filter>[historic] = 'memorial' or [historic]='archaeological_site'</Filter>
359      &maxscale_zoom17;
360      <TextSymbolizer size="9" fill="brown" dy="12" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
361    </Rule>
362    <Rule>
363      <Filter>[natural] = 'water' or [natural] = 'lake' or [landuse] = 'reservoir' or [landuse] = 'basin'</Filter>
364      &maxscale_zoom15;
365      <TextSymbolizer size="10" fill="#6699cc" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
366    </Rule>
367    <Rule>
368      <Filter>([leisure] != '' or [landuse] != '') and [point] = 'yes'</Filter>
369      &maxscale_zoom15;
370      <TextSymbolizer size="9" fill="#000" fontset-name="book-fonts" halo-radius="2" wrap-width="10">[name]</TextSymbolizer>
371    </Rule>
372    <Rule>
373      <Filter>[natural] = 'bay'</Filter>
374      &maxscale_zoom14;
375      <TextSymbolizer size="10" fill="#6699cc" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
376    </Rule>
377    <Rule>
378      <Filter>[natural] = 'spring'</Filter>
379      &maxscale_zoom16;
380      <TextSymbolizer size="8" fill="#6699cc" dy="10" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
381    </Rule>
382    <Rule>
383      <Filter>[tourism] = 'alpine_hut'</Filter>
384      &maxscale_zoom15;
385      <TextSymbolizer size="9" fill="#6699cc" dy="10" fontset-name="book-fonts" halo-radius="1" placement="interior">[name]</TextSymbolizer>
386    </Rule>
387    <Rule>
388      <Filter>[tourism] = 'alpine_hut'</Filter>
389      &maxscale_zoom16;
390      <TextSymbolizer size="8" fill="#6699cc" dy="22" fontset-name="oblique-fonts" halo-radius="1" placement="interior">[ele]</TextSymbolizer>
391    </Rule>
392    <Rule>
393      <Filter>[amenity]='shelter'</Filter>
394      &maxscale_zoom17;
395      <TextSymbolizer size="9" fill="#6699cc" dy="10" fontset-name="book-fonts" halo-radius="1" placement="interior">[name]</TextSymbolizer>
396      <TextSymbolizer size="8" fill="#6699cc" dy="22" fontset-name="oblique-fonts" halo-radius="1" placement="interior">[ele]</TextSymbolizer>
397    </Rule>
398    <Rule>
399      <Filter>[amenity] = 'bank'</Filter>
400      &maxscale_zoom17;
401      <TextSymbolizer size="9" fill="black" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
402    </Rule>
403    <Rule>
404      <Filter>[tourism] = 'hotel' or [tourism]='hostel' or [tourism]='chalet'</Filter>
405      &maxscale_zoom17;
406      <TextSymbolizer size="10" fill="#0066ff" dy="11" fontset-name="book-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
407    </Rule>
408    <Rule>
409      <Filter>[amenity] = 'embassy'</Filter>
410      &maxscale_zoom17;
411      <TextSymbolizer size="9" fill="#0066ff" dy="8" fontset-name="book-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
412    </Rule>
413    <Rule>
414      <Filter>[tourism]='guest_house'</Filter>
415      &maxscale_zoom17;
416      <TextSymbolizer size="8" fill="#0066ff" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
417    </Rule>
418    <Rule>
419      <Filter>[tourism]='bed_and_breakfast'</Filter>
420      &maxscale_zoom17;
421      <TextSymbolizer size="8" fill="#0066ff" dy="7" fontset-name="book-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
422    </Rule>
423    <Rule>
424      <Filter>[amenity] = 'fuel' or [amenity]='bus_station'</Filter>
425      &maxscale_zoom17;
426      <TextSymbolizer size="9" fill="#0066ff" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
427    </Rule>
428    <Rule>
429      <Filter>[tourism] = 'camp_site'</Filter>
430      &maxscale_zoom17;
431      <TextSymbolizer size="10" fill="#0066ff" dy="15" fontset-name="book-fonts" halo-radius="1" wrap-width="70" placement="interior">[name]</TextSymbolizer>
432    </Rule>
433    <Rule>
434      <Filter>[tourism] = 'caravan_site'</Filter>
435      &maxscale_zoom17;
436      <TextSymbolizer size="10" fill="#0066ff" dy="19" fontset-name="book-fonts" halo-radius="1" wrap-width="70" placement="interior">[name]</TextSymbolizer>
437    </Rule>
438    <Rule>
439      <Filter>[waterway] = 'lock'</Filter>
440      &maxscale_zoom15;
441      <TextSymbolizer size="9" fill="#0066ff" dy="10" fontset-name="book-fonts" halo-radius="1" wrap-width="70" placement="interior">[name]</TextSymbolizer>
442    </Rule>
443    <Rule>
444      <Filter>[leisure] = 'marina'</Filter>
445      &maxscale_zoom15;
446      &minscale_zoom16;
447      <TextSymbolizer size="8" fill="blue" fontset-name="book-fonts" halo-radius="1" wrap-width="30" placement="interior">[name]</TextSymbolizer>
448    </Rule>
449    <Rule>
450      <Filter>[leisure] = 'marina'</Filter>
451      &maxscale_zoom17;
452      <TextSymbolizer size="10" fill="blue" fontset-name="book-fonts" halo-radius="1" wrap-width="30" placement="interior">[name]</TextSymbolizer>
453    </Rule>
454    <Rule>
455      <Filter>[tourism] = 'theme_park'</Filter>
456      &maxscale_zoom14;
457      &minscale_zoom15;
458      <TextSymbolizer size="8" fill="#734a08" fontset-name="book-fonts" halo-radius="1" wrap-width="30" placement="interior">[name]</TextSymbolizer>
459    </Rule>
460    <Rule>
461      <Filter>[tourism] = 'theme_park'</Filter>
462      &maxscale_zoom16;
463      <TextSymbolizer size="10" fill="#734a08" fontset-name="book-fonts" halo-radius="1" wrap-width="30" placement="interior">[name]</TextSymbolizer>
464    </Rule>
465    <Rule>
466      <Filter>[tourism]='museum'</Filter>
467      &maxscale_zoom17;
468      <TextSymbolizer size="10" fill="#734a08" dy="10" fontset-name="book-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
469    </Rule>
470    <Rule>
471      <Filter>[amenity]='prison'</Filter>
472      &maxscale_zoom17;
473      <TextSymbolizer size="10" fill="#734a08" dy="16" fontset-name="book-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]</TextSymbolizer>
474    </Rule>
475    <Rule>
476      <Filter>[tourism] = 'attraction'</Filter>
477      &maxscale_zoom16;
478      <TextSymbolizer size="10" fill="#660033" fontset-name="book-fonts" halo-radius="2" wrap-width="10" placement="interior">[name]</TextSymbolizer>
479    </Rule>
480    <Rule>
481      <Filter>[amenity] = 'university'</Filter>
482      &maxscale_zoom15;
483      <TextSymbolizer size="9" fill="#000033" fontset-name="bold-fonts" halo-radius="1" wrap-width="16" placement="interior">[name]</TextSymbolizer>
484    </Rule>
485    <Rule>
486      <Filter>[amenity] = 'school' or [amenity] = 'college'</Filter>
487      &maxscale_zoom15;
488      <TextSymbolizer size="9" fill="#000033" fontset-name="book-fonts" halo-radius="1" wrap-width="14" placement="interior">[name]</TextSymbolizer>
489    </Rule>
490    <Rule>
491      <Filter>[amenity] = 'kindergarten'</Filter>
492      &maxscale_zoom16;
493      <TextSymbolizer size="8" fill="#000033" fontset-name="book-fonts" halo-radius="1" wrap-width="14" placement="interior">[name]</TextSymbolizer>
494    </Rule>
495    <Rule>
496      <Filter>[man_made] = 'lighthouse'</Filter>
497      &maxscale_zoom15;
498      <TextSymbolizer size="9" fill="#000033" dy="16" fontset-name="book-fonts" halo-radius="2" wrap-width="12" placement="interior">[name]</TextSymbolizer>
499    </Rule>
500    <Rule>
501      <Filter>[man_made] = 'windmill'</Filter>
502      &maxscale_zoom17;
503      <TextSymbolizer size="9" fill="#734a08" dy="12" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
504    </Rule>
505    <Rule>
506      <Filter>[amenity] = 'hospital'</Filter>
507      &maxscale_zoom16;
508      <TextSymbolizer size="8" fill="#e21b00" dy="10" fontset-name="book-fonts" halo-radius="2" wrap-width="24" placement="interior">[name]</TextSymbolizer>
509    </Rule>
510    <Rule>
511      <Filter>[amenity] = 'pharmacy'</Filter>
512      &maxscale_zoom17;
513      <TextSymbolizer size="8" fill="#e21b00" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="12" placement="interior">[name]</TextSymbolizer>
514    </Rule>
515    <Rule>
516      <Filter>[shop]='bakery' or [shop]='clothes' or [shop]='fashion' or [shop]='convenience' or [shop]='doityourself' or [shop]='hairdresser' or [shop]='butcher' or [shop]='car' or [shop]='car_repair' or [shop]='bicycle' or [shop]='florist'</Filter>
517      &maxscale_zoom18;
518      <TextSymbolizer size="8" fill="#939" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="12" placement="interior">[name]</TextSymbolizer>
519    </Rule>
520    <Rule>
521      <Filter>[shop]='supermarket' or [shop]='department_store'</Filter>
522      &maxscale_zoom16;
523      <TextSymbolizer size="9" fill="#939" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="20" placement="interior">[name]</TextSymbolizer>
524    </Rule>
525    <Rule>
526      <Filter>[military] = 'danger_area'</Filter>
527      &maxscale_zoom12;
528      <TextSymbolizer size="9" fill="pink" fontset-name="bold-fonts" halo-radius="1" wrap-width="10" placement="interior">[name]</TextSymbolizer>
529    </Rule>
530    <Rule>
531      <Filter>[aeroway] = 'gate'</Filter>
532      &maxscale_zoom17;
533      <TextSymbolizer size="10" fill="#aa66cc" fontset-name="book-fonts" halo-radius="1" wrap-width="10" placement="interior">[ref]</TextSymbolizer>
534    </Rule>
535</Style>
536<Style name="tunnels-casing">
537    <Rule>
538      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
539      &maxscale_zoom12;
540      &minscale_zoom12;
541      <LineSymbolizer stroke="#dc1400" stroke-width="4" stroke-dasharray="4,2"/>
542    </Rule>
543    <Rule>
544      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
545      &maxscale_zoom13;
546      &minscale_zoom14;
547      <LineSymbolizer stroke="#dc1400" stroke-width="7.5" stroke-dasharray="4,2"/>
548    </Rule>
549    <Rule>
550      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
551      &maxscale_zoom15;
552      &minscale_zoom16;
553      <LineSymbolizer stroke="#dc1400" stroke-width="11" stroke-dasharray="4,2"/>
554    </Rule>
555    <Rule>
556      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
557      &maxscale_zoom17;
558      &minscale_zoom18;
559      <LineSymbolizer stroke="#dc1400" stroke-width="14" stroke-dasharray="4,2"/>
560    </Rule>
561    <Rule>
562      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
563      &maxscale_zoom12;
564      &minscale_zoom12;
565      <LineSymbolizer stroke="#477147" stroke-width="4" stroke-dasharray="4,2"/>
566    </Rule>
567    <Rule>
568      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
569      &maxscale_zoom13;
570      &minscale_zoom14;
571      <LineSymbolizer stroke="#477147" stroke-width="8" stroke-dasharray="4,2"/>
572    </Rule>
573    <Rule>
574     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
575      &maxscale_zoom15;
576      &minscale_zoom16;
577      <LineSymbolizer stroke="#477147" stroke-width="11" stroke-dasharray="4,2"/>
578    </Rule>
579    <Rule>
580     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
581      &maxscale_zoom17;
582      &minscale_zoom18;
583      <LineSymbolizer stroke="#477147" stroke-width="14" stroke-dasharray="4,2"/>
584    </Rule>
585    <Rule>
586      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
587      &maxscale_zoom12;
588      &minscale_zoom12;
589      <LineSymbolizer stroke="#8d4346" stroke-width="4" stroke-dasharray="4,2"/>
590    </Rule>
591    <Rule>
592      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
593      &maxscale_zoom13;
594      &minscale_zoom14;
595      <LineSymbolizer stroke="#8d4346" stroke-width="8" stroke-dasharray="4,2"/>
596    </Rule>
597   <Rule>
598      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
599      &maxscale_zoom15;
600      &minscale_zoom16;
601      <LineSymbolizer stroke="#8d4346" stroke-width="11" stroke-dasharray="4,2"/>
602    </Rule>
603    <Rule>
604      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
605      &maxscale_zoom17;
606      &minscale_zoom18;
607      <LineSymbolizer stroke="#8d4346" stroke-width="14" stroke-dasharray="4,2"/>
608    </Rule>
609    <Rule>
610      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
611      &maxscale_zoom12;
612      &minscale_zoom12;
613      <LineSymbolizer stroke="#a37b48" stroke-width="4" stroke-dasharray="4,2"/>
614    </Rule>
615    <Rule>
616      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
617      &maxscale_zoom13;
618      &minscale_zoom14;
619      <LineSymbolizer stroke="#a37b48" stroke-width="10" stroke-dasharray="4,2"/>
620    </Rule>
621    <Rule>
622      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
623      &maxscale_zoom15;
624      &minscale_zoom16;
625      <LineSymbolizer stroke="#a37b48" stroke-width="12" stroke-dasharray="4,2"/>
626    </Rule>
627    <Rule>
628      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
629      &maxscale_zoom17;
630      &minscale_zoom18;
631      <LineSymbolizer stroke="#a37b48" stroke-width="17" stroke-dasharray="4,2"/>
632    </Rule>
633    <Rule>
634      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
635      &maxscale_zoom13;
636      &minscale_zoom13;
637      <LineSymbolizer stroke="#999" stroke-width="6" stroke-dasharray="4,2"/>
638    </Rule>
639    <Rule>
640      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
641      &maxscale_zoom14;
642      &minscale_zoom14;
643      <LineSymbolizer stroke="#999" stroke-width="7.5" stroke-dasharray="4,2"/>
644    </Rule>
645    <Rule>
646      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
647      &maxscale_zoom13;
648      &minscale_zoom13;
649      <LineSymbolizer stroke="#999" stroke-width="3" stroke-dasharray="4,2"/>
650    </Rule>
651    <Rule>
652      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
653      &maxscale_zoom14;
654      &minscale_zoom14;
655      <LineSymbolizer stroke="#999" stroke-width="4.5" stroke-dasharray="4,2"/>
656    </Rule>
657    <Rule>
658      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
659      &maxscale_zoom15;
660      &minscale_zoom15;
661      <LineSymbolizer stroke="#999" stroke-width="8" stroke-dasharray="4,2"/>
662    </Rule>
663    <Rule>
664      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
665      &maxscale_zoom16;
666      &minscale_zoom16;
667      <LineSymbolizer stroke="#999" stroke-width="11" stroke-dasharray="4,2"/>
668    </Rule>
669    <Rule>
670      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
671      &maxscale_zoom15;
672      &minscale_zoom16;
673      <LineSymbolizer stroke="#999" stroke-width="11" stroke-dasharray="4,2"/>
674    </Rule>
675    <Rule>
676      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link' or [highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
677      &maxscale_zoom17;
678      &minscale_zoom18;
679      <LineSymbolizer stroke="#999" stroke-width="16" stroke-dasharray="4,2"/>
680    </Rule>
681</Style>
682<Style name="tunnels-fill">
683    <Rule>
684      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
685      &maxscale_zoom12;
686      &minscale_zoom12;
687      <LineSymbolizer stroke-linejoin="round" stroke="#ffc272" stroke-width="2" stroke-linecap="round"/>
688    </Rule>
689    <Rule>
690      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
691      &maxscale_zoom13;
692      &minscale_zoom14;
693      <LineSymbolizer stroke-linejoin="round" stroke="#ffcd8c" stroke-width="5" stroke-linecap="round"/>
694    </Rule>
695    <Rule>
696      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
697      &maxscale_zoom15;
698      &minscale_zoom16;
699      <LineSymbolizer stroke-linejoin="round" stroke="#ffcd8c" stroke-width="8.5" stroke-linecap="round"/>
700    </Rule>
701    <Rule>
702      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
703      &maxscale_zoom17;
704      &minscale_zoom18;
705      <LineSymbolizer stroke-linejoin="round" stroke="#ffc272" stroke-width="11" stroke-linecap="round"/>
706    </Rule>
707    <Rule>
708      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
709      &maxscale_zoom12;
710      &minscale_zoom12;
711      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="2.5" stroke-linecap="round"/>
712    </Rule>
713    <Rule>
714      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
715      &maxscale_zoom13;
716      &minscale_zoom14;
717      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="6.5" stroke-linecap="round"/>
718    </Rule>   
719    <Rule>
720      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
721      &maxscale_zoom15;
722      &minscale_zoom16;
723      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="9" stroke-linecap="round"/>
724    </Rule>
725    <Rule>
726      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
727      &maxscale_zoom17;
728      &minscale_zoom18;
729      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="12" stroke-linecap="round"/>
730    </Rule>
731    <Rule>
732      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
733      &maxscale_zoom12;
734      &minscale_zoom12;
735      <LineSymbolizer stroke-linejoin="round" stroke="#feba64" stroke-width="2.5" stroke-linecap="round"/>
736    </Rule>
737    <Rule>
738      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
739      &maxscale_zoom13;
740      &minscale_zoom14;
741      <LineSymbolizer stroke-linejoin="round" stroke="#feba64" stroke-width="6.5" stroke-linecap="round"/>
742    </Rule>
743    <Rule>
744      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
745      &maxscale_zoom15;
746      &minscale_zoom16;
747      <LineSymbolizer stroke-linejoin="round" stroke="#feba64" stroke-width="9" stroke-linecap="round"/>
748    </Rule>
749    <Rule>
750      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
751      &maxscale_zoom17;
752      &minscale_zoom18;
753      <LineSymbolizer stroke-linejoin="round" stroke="#feba64" stroke-width="12" stroke-linecap="round"/>
754    </Rule>
755    <Rule>
756      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
757      &maxscale_zoom12;
758      &minscale_zoom12;
759      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="2" stroke-linecap="round"/>
760    </Rule>
761    <Rule>
762      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
763      &maxscale_zoom13;
764      &minscale_zoom14;
765      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="8" stroke-linecap="round"/>
766    </Rule>
767    <Rule>
768      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
769      &maxscale_zoom15;
770      &minscale_zoom16;
771      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="10" stroke-linecap="round"/>
772    </Rule>
773    <Rule>
774      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
775      &maxscale_zoom17;
776      &minscale_zoom18;
777      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="14" stroke-linecap="round"/>
778    </Rule>
779    <Rule>
780      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
781      &maxscale_zoom13;
782      &minscale_zoom13;
783      <LineSymbolizer stroke-linejoin="round" stroke="#ffc" stroke-width="5" stroke-linecap="round"/>
784    </Rule>
785    <Rule>
786      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
787      &maxscale_zoom14;
788      &minscale_zoom14;
789      <LineSymbolizer stroke-linejoin="round" stroke="#ffc" stroke-width="6.5" stroke-linecap="round"/>
790    </Rule>
791    <Rule>
792      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
793      &maxscale_zoom13;
794      &minscale_zoom13;
795      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="2" stroke-linecap="round"/>
796    </Rule>
797    <Rule>
798      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
799      &maxscale_zoom14;
800      &minscale_zoom14;
801      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
802    </Rule>
803    <Rule>
804      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
805      &maxscale_zoom15;
806      &minscale_zoom16;
807      <LineSymbolizer stroke-linejoin="round" stroke="#ffc" stroke-width="9.4" stroke-linecap="round"/>
808    </Rule>
809    <Rule>
810      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
811      &maxscale_zoom17;
812      &minscale_zoom18;
813      <LineSymbolizer stroke-linejoin="round" stroke="#ffc" stroke-width="13" stroke-linecap="round"/>
814    </Rule>
815    <Rule>
816      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
817      &maxscale_zoom15;
818      &minscale_zoom15;
819      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="6.5" stroke-linecap="round"/>
820    </Rule>
821    <Rule>
822      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
823      &maxscale_zoom16;
824      &minscale_zoom16;
825      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="9.4" stroke-linecap="round"/>
826    </Rule>
827    <Rule>
828      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
829      &maxscale_zoom17;
830      &minscale_zoom18;
831      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="13" stroke-linecap="round"/>
832    </Rule>
833</Style>
834<Style name="minor-roads-casing-links">
835    <Rule>
836      <Filter>[highway]='raceway'</Filter>
837      &maxscale_zoom12;
838      &minscale_zoom12;
839      <LineSymbolizer stroke-linejoin="round" stroke="pink" stroke-width="1.2"/>
840    </Rule>
841    <Rule>
842      <Filter>[highway]='raceway'</Filter>
843      &maxscale_zoom13;
844      &minscale_zoom14;
845      <LineSymbolizer stroke-linejoin="round" stroke="pink" stroke-width="4"/>
846    </Rule>
847    <Rule>
848      <Filter>[highway]='raceway'</Filter>
849      &maxscale_zoom15;
850      &minscale_zoom18;
851      <LineSymbolizer stroke-linejoin="round" stroke="pink" stroke-width="7"/>
852    </Rule>
853    <Rule>
854      <Filter>[highway]='motorway_link' and not [tunnel] = 'yes'</Filter>
855      &maxscale_zoom12;
856      &minscale_zoom12;
857      <LineSymbolizer stroke-linejoin="round" stroke="#dc1400" stroke-width="1.5"/>
858    </Rule>
859    <Rule>
860      <Filter>[highway]='motorway_link' and not [tunnel] = 'yes'</Filter>
861      &maxscale_zoom13;
862      &minscale_zoom14;
863      <LineSymbolizer stroke-linejoin="round" stroke="#dc1400" stroke-width="4.5"/>
864    </Rule>
865    <Rule>
866      <Filter>[highway]='motorway_link' and not [tunnel] = 'yes'</Filter>
867      &maxscale_zoom15;
868      &minscale_zoom16;
869      <LineSymbolizer stroke-linejoin="round" stroke="#dc1400" stroke-width="8"/>
870    </Rule>
871    <Rule>
872      <Filter>[highway]='motorway_link' and not [tunnel] = 'yes'</Filter>
873      &maxscale_zoom17;
874      &minscale_zoom18;
875      <LineSymbolizer stroke-linejoin="round" stroke="#dc1400" stroke-width="11"/>
876    </Rule>
877    <Rule>
878     <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
879      &maxscale_zoom12;
880      &minscale_zoom12;
881      <LineSymbolizer stroke-linejoin="round" stroke="#477147" stroke-width="3"/>
882    </Rule>
883    <Rule>
884     <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
885      &maxscale_zoom13;
886      &minscale_zoom14;
887      <LineSymbolizer stroke-linejoin="round" stroke="#477147" stroke-width="7.5"/>
888    </Rule>
889    <Rule>
890     <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
891      &maxscale_zoom15;
892      &minscale_zoom16;
893      <LineSymbolizer stroke-linejoin="round" stroke="#477147" stroke-width="11.5"/>
894    </Rule>
895    <Rule>
896     <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
897      &maxscale_zoom17;
898      &minscale_zoom18;
899      <LineSymbolizer stroke-linejoin="round" stroke="#477147" stroke-width="16"/>
900    </Rule>
901    <Rule>
902      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
903      &maxscale_zoom12;     
904      &minscale_zoom12;
905      <LineSymbolizer stroke-linejoin="round" stroke="#8d4346" stroke-width="3"/>
906    </Rule>
907    <Rule>
908      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
909      &maxscale_zoom13;     
910      &minscale_zoom14;
911      <LineSymbolizer stroke-linejoin="round" stroke="#8d4346" stroke-width="7.5"/>
912    </Rule>
913    <Rule>
914      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
915      &maxscale_zoom15;     
916      &minscale_zoom16;
917      <LineSymbolizer stroke-linejoin="round" stroke="#8d4346" stroke-width="11.5"/>
918    </Rule>
919    <Rule>
920      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
921      &maxscale_zoom17;     
922      &minscale_zoom18;
923      <LineSymbolizer stroke-linejoin="round" stroke="#8d4346" stroke-width="16"/>
924    </Rule>
925    <Rule>
926      <Filter>[highway] = 'secondary_link' and not [tunnel] = 'yes'</Filter>
927      &maxscale_zoom12;
928      &minscale_zoom12;
929      <LineSymbolizer stroke-linejoin="round" stroke="#a37b48" stroke-width="2.5" stroke-linecap="round"/>
930    </Rule>
931    <Rule>
932      <Filter>[highway] = 'secondary_link' and not [tunnel] = 'yes'</Filter>
933      &maxscale_zoom13;
934      &minscale_zoom14;
935      <LineSymbolizer stroke-linejoin="round" stroke="#a37b48" stroke-width="8.5" stroke-linecap="round"/>
936    </Rule>
937    <Rule>
938      <Filter>[highway] = 'secondary_link' and not [tunnel] = 'yes'</Filter>
939      &maxscale_zoom15;
940      &minscale_zoom16;
941      <LineSymbolizer stroke-linejoin="round" stroke="#a37b48" stroke-width="11.5" stroke-linecap="round"/>
942    </Rule>
943    <Rule>
944      <Filter>[highway] = 'secondary_link' and not [tunnel] = 'yes'</Filter>
945      &maxscale_zoom17;
946      &minscale_zoom18;
947      <LineSymbolizer stroke-linejoin="round" stroke="#a37b48" stroke-width="16" stroke-linecap="round"/>
948    </Rule>
949    <Rule>
950      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
951      &maxscale_zoom13;
952      &minscale_zoom13;
953      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="6" stroke-linecap="round"/>
954    </Rule>
955    <Rule>
956      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
957      &maxscale_zoom14;
958      &minscale_zoom14;
959      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="7.5" stroke-linecap="round"/>
960    </Rule>
961    <Rule>
962      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
963      &maxscale_zoom15;
964      &minscale_zoom16;
965      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="11" stroke-linecap="round"/>
966    </Rule>
967    <Rule>
968      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
969      &maxscale_zoom17;
970      &minscale_zoom18;
971      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="16" stroke-linecap="round"/>
972    </Rule>
973</Style>
974<Style name="minor-roads-casing">
975    <Rule>
976      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
977      &maxscale_zoom12;
978      &minscale_zoom12;
979      <LineSymbolizer stroke-linejoin="round" stroke="#dc1400" stroke-width="4"/>
980    </Rule>
981    <Rule>
982     <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
983      &maxscale_zoom12;
984      &minscale_zoom12;
985      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="2.5"/>
986    </Rule>
987    <Rule>
988      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
989      &maxscale_zoom12;     
990      &minscale_zoom12;
991      <LineSymbolizer stroke-linejoin="round" stroke="#8d4346" stroke-width="3"/>
992    </Rule>
993    <Rule>
994      <Filter>[highway] = 'secondary' and not [tunnel] = 'yes'</Filter>
995      &maxscale_zoom12;
996      &minscale_zoom12;
997      <LineSymbolizer stroke-linejoin="round" stroke="#a37b48" stroke-width="2.5" stroke-linecap="round"/>
998    </Rule>
999    <Rule>
1000      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1001      &maxscale_zoom13;
1002      &minscale_zoom14;
1003      <LineSymbolizer stroke-linejoin="round" stroke="#dc1400" stroke-width="7.5"/>
1004    </Rule>
1005    <Rule>
1006     <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
1007      &maxscale_zoom13;
1008      &minscale_zoom14;
1009      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="7"/>
1010    </Rule>
1011    <Rule>
1012      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
1013      &maxscale_zoom13;     
1014      &minscale_zoom14;
1015      <LineSymbolizer stroke-linejoin="round" stroke="#8d4346" stroke-width="7.5"/>
1016    </Rule>
1017    <Rule>
1018      <Filter>[highway] = 'secondary' and not [tunnel] = 'yes'</Filter>
1019      &maxscale_zoom13;
1020      &minscale_zoom14;
1021      <LineSymbolizer stroke-linejoin="round" stroke="#a37b48" stroke-width="7" stroke-linecap="round"/>
1022    </Rule>
1023    <Rule>
1024      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1025      &maxscale_zoom15;
1026      &minscale_zoom16;
1027      <LineSymbolizer stroke-linejoin="round" stroke="#dc1400" stroke-width="11"/>
1028    </Rule>
1029    <Rule>
1030     <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
1031      &maxscale_zoom15;
1032      &minscale_zoom16;
1033      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="11"/>
1034    </Rule>
1035    <Rule>
1036      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
1037      &maxscale_zoom15;     
1038      &minscale_zoom16;
1039      <LineSymbolizer stroke-linejoin="round" stroke="#8d4346" stroke-width="11.5"/>
1040    </Rule>
1041    <Rule>
1042      <Filter>[highway] = 'secondary' and not [tunnel] = 'yes'</Filter>
1043      &maxscale_zoom15;
1044      &minscale_zoom16;
1045      <LineSymbolizer stroke-linejoin="round" stroke="#a37b48" stroke-width="10.5" stroke-linecap="round"/>
1046    </Rule>
1047    <Rule>
1048      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1049      &maxscale_zoom17;
1050      &minscale_zoom18;
1051      <LineSymbolizer stroke-linejoin="round" stroke="#dc1400" stroke-width="14"/>
1052    </Rule>
1053    <Rule>
1054     <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
1055      &maxscale_zoom17;
1056      &minscale_zoom18;
1057      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="15.5"/>
1058    </Rule>
1059    <Rule>
1060      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
1061      &maxscale_zoom17;     
1062      &minscale_zoom18;
1063      <LineSymbolizer stroke-linejoin="round" stroke="#8d4346" stroke-width="16"/>
1064    </Rule>
1065    <Rule>
1066      <Filter>[highway] = 'secondary' and not [tunnel] = 'yes'</Filter>
1067      &maxscale_zoom17;
1068      &minscale_zoom18;
1069      <LineSymbolizer stroke-linejoin="round" stroke="#a37b48" stroke-width="16" stroke-linecap="round"/>
1070    </Rule>
1071    <Rule>
1072      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
1073      &maxscale_zoom13;
1074      &minscale_zoom13;
1075      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="5.5" stroke-linecap="round"/>
1076    </Rule>
1077    <Rule>
1078      <Filter>([highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road') and not [tunnel]='yes'</Filter>
1079      &maxscale_zoom13;
1080      &minscale_zoom13;
1081      <LineSymbolizer stroke-linejoin="round" stroke="#999" stroke-width="3" stroke-linecap="round"/>
1082    </Rule>
1083    <Rule>
1084      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
1085      &maxscale_zoom14;
1086      &minscale_zoom14;
1087      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="7.5" stroke-linecap="round"/>
1088    </Rule>
1089    <Rule>
1090      <Filter>([highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road') and not [tunnel]='yes'</Filter>
1091      &maxscale_zoom14;
1092      &minscale_zoom14;
1093      <LineSymbolizer stroke-linejoin="round" stroke="#999" stroke-width="4.5" stroke-linecap="round"/>
1094    </Rule>
1095    <Rule>
1096      <Filter>([highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road') and not [tunnel]='yes'</Filter>
1097      &maxscale_zoom15;
1098      &minscale_zoom15;
1099      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="8" stroke-linecap="round"/>
1100    </Rule>
1101    <Rule>
1102      <Filter>([highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road') and not [tunnel]='yes'</Filter>
1103      &maxscale_zoom16;
1104      &minscale_zoom16;
1105      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="11" stroke-linecap="round"/>
1106    </Rule>
1107    <Rule>
1108      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
1109      &maxscale_zoom15;
1110      &minscale_zoom16;
1111      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="11" stroke-linecap="round"/>
1112    </Rule>
1113    <Rule>
1114      <Filter>([highway] = 'tertiary' or [highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road') and not [tunnel]='yes'</Filter>
1115      &maxscale_zoom17;
1116      &minscale_zoom18;
1117      <LineSymbolizer stroke-linejoin="round" stroke="#bbb" stroke-width="16" stroke-linecap="round"/>
1118    </Rule>
1119    <Rule>
1120      <Filter>[highway] = 'service' and not ([service]='INT-minor' or [tunnel]='yes')</Filter>
1121      &maxscale_zoom14;
1122      &minscale_zoom15;
1123      <LineSymbolizer stroke-linejoin="round" stroke="#999" stroke-width="2.5" stroke-linecap="round"/>
1124    </Rule>
1125    <Rule>
1126      <Filter>[highway] = 'service' and [tunnel]='yes'</Filter>
1127      &maxscale_zoom14;
1128      &minscale_zoom15;
1129      <LineSymbolizer stroke="#999" stroke-width="2.5" stroke-dasharray="4,2"/>
1130    </Rule>
1131    <Rule>
1132      <Filter>[highway] = 'service' and not ([service]='INT-minor' or [tunnel]='yes')</Filter>
1133      &maxscale_zoom16;
1134      &minscale_zoom18;
1135      <LineSymbolizer stroke-linejoin="round" stroke="#999" stroke-width="7" stroke-linecap="round"/>
1136   </Rule>
1137   <Rule>
1138      <Filter>[highway] = 'service' and [tunnel]='yes'</Filter>
1139      &maxscale_zoom16;
1140      &minscale_zoom18;
1141      <LineSymbolizer stroke="#999" stroke-width="7" stroke-dasharray="4,2"/>
1142   </Rule>
1143   <Rule>
1144      <Filter>[highway] = 'service' and [service]='INT-minor'</Filter>
1145      &maxscale_zoom16;
1146      &minscale_zoom18;
1147      <LineSymbolizer stroke-linejoin="round" stroke="#999" stroke-width="4" stroke-linecap="round"/>
1148   </Rule>
1149   <Rule>
1150      <Filter>[highway] = 'pedestrian' and not [tunnel]='yes'</Filter>
1151      &maxscale_zoom13;
1152      &minscale_zoom13;
1153      <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="2" stroke-linecap="round"/>
1154   </Rule>
1155   <Rule>
1156      <Filter>[highway] = 'pedestrian' and [tunnel]='yes'</Filter>
1157      &maxscale_zoom13;
1158      &minscale_zoom13;
1159      <LineSymbolizer stroke="grey" stroke-width="2" stroke-dasharray="4,2"/>
1160   </Rule>
1161   <Rule>
1162      <Filter>[highway] = 'pedestrian' and not [tunnel]='yes'</Filter>
1163      &maxscale_zoom14;
1164      &minscale_zoom14;
1165      <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="3.6" stroke-linecap="round"/>
1166   </Rule>
1167   <Rule>
1168      <Filter>[highway] = 'pedestrian' and [tunnel]='yes'</Filter>
1169      &maxscale_zoom14;
1170      &minscale_zoom14;
1171      <LineSymbolizer stroke="grey" stroke-width="3.6" stroke-dasharray="4,2"/>
1172   </Rule>
1173   <Rule>
1174      <Filter>[highway] = 'pedestrian' and not [tunnel]='yes'</Filter>
1175      &maxscale_zoom15;
1176      &minscale_zoom15;
1177      <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="6.5" stroke-linecap="round"/>
1178   </Rule>
1179   <Rule>
1180      <Filter>[highway] = 'pedestrian' and [tunnel]='yes'</Filter>
1181      &maxscale_zoom15;
1182      &minscale_zoom15;
1183      <LineSymbolizer stroke="grey" stroke-width="6.5" stroke-dasharray="4,2"/>
1184   </Rule>
1185   <Rule>
1186      <Filter>[highway] = 'pedestrian' and not [tunnel]='yes'</Filter>
1187      &maxscale_zoom16;
1188      <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="9" stroke-linecap="round"/>
1189   </Rule>
1190   <Rule>
1191      <Filter>[highway] = 'pedestrian' and [tunnel]='yes'</Filter>
1192      &maxscale_zoom16;
1193      <LineSymbolizer stroke="grey" stroke-width="9" stroke-dasharray="4,2"/>
1194    </Rule>
1195    <Rule>
1196      <Filter>([highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')) and not [tunnel]='yes'</Filter>
1197      &maxscale_zoom15;
1198      <LineSymbolizer stroke="#a0a0a0" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/>
1199    </Rule>
1200    <Rule>
1201      <Filter>([highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')) and not [tunnel] = 'yes'</Filter>
1202      &maxscale_zoom15;
1203      <LineSymbolizer stroke="#3e6eaf" stroke-width="2.6" stroke-linejoin="round" stroke-linecap="round"/>
1204    </Rule>
1205    <Rule>
1206      <Filter>[highway] = 'living_street'</Filter>
1207      &maxscale_zoom12;
1208      &minscale_zoom13;
1209      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
1210    </Rule>
1211    <Rule>
1212      <Filter>[highway] = 'living_street'</Filter>
1213      &maxscale_zoom14;
1214      &minscale_zoom14;
1215      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4" stroke-linecap="round"/>
1216    </Rule>
1217    <Rule>
1218      <Filter>[highway] = 'living_street'</Filter>
1219      &maxscale_zoom15;
1220      &minscale_zoom15;
1221      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="6" stroke-linecap="round"/>
1222    </Rule>
1223   <Rule>
1224      <Filter>[highway] = 'living_street'</Filter>
1225      &maxscale_zoom16;
1226      &minscale_zoom16;
1227      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="9" stroke-linecap="round"/>
1228    </Rule>
1229   <Rule>
1230      <Filter>[highway] = 'living_street'</Filter>
1231      &maxscale_zoom17;
1232      &minscale_zoom18;
1233      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="14.5" stroke-linecap="round"/>
1234    </Rule>
1235</Style>
1236<Style name="minor-roads-fill-links">
1237    <Rule>
1238      <Filter>[highway]='motorway_link' and not [tunnel] = 'yes'</Filter>
1239      &maxscale_zoom12;
1240      &minscale_zoom12;
1241      <LineSymbolizer stroke="#ffc982" stroke-width="0.5"/>
1242    </Rule>
1243    <Rule>
1244      <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
1245      &maxscale_zoom13;
1246      &minscale_zoom14;
1247      <LineSymbolizer stroke-linejoin="round" stroke="#ffc982" stroke-width="3" stroke-linecap="round"/>
1248    </Rule>
1249    <Rule>
1250      <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
1251      &maxscale_zoom15;
1252      &minscale_zoom16;
1253      <LineSymbolizer stroke-linejoin="round" stroke="#ffc982" stroke-width="6.5" stroke-linecap="round"/>
1254    </Rule>
1255    <Rule>
1256      <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
1257      &maxscale_zoom17;
1258      &minscale_zoom18;
1259      <LineSymbolizer stroke-linejoin="round" stroke="#ffc982" stroke-width="9" stroke-linecap="round"/>
1260    </Rule>
1261    <Rule>
1262      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
1263      &maxscale_zoom12;
1264      &minscale_zoom12;
1265      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="2.5" stroke-linecap="round"/>
1266    </Rule>
1267    <Rule>
1268      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
1269      &maxscale_zoom13;
1270      &minscale_zoom14;
1271      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="7" stroke-linecap="round"/>
1272    </Rule>
1273    <Rule>
1274      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
1275      &maxscale_zoom15;
1276      &minscale_zoom16;
1277      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="11" stroke-linecap="round"/>
1278    </Rule>
1279    <Rule>
1280      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
1281      &maxscale_zoom17;
1282      &minscale_zoom18;
1283      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="15.5" stroke-linecap="round"/>
1284   </Rule>
1285   <Rule>
1286      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
1287      &maxscale_zoom12;
1288      &minscale_zoom12;
1289      <LineSymbolizer stroke-linejoin="round" stroke="#ffa858" stroke-width="2.5" stroke-linecap="round"/>
1290    </Rule>
1291    <Rule>
1292      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
1293      &maxscale_zoom13;
1294      &minscale_zoom14;
1295      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="7" stroke-linecap="round"/>
1296    </Rule>
1297    <Rule>
1298      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
1299      &maxscale_zoom15;
1300      &minscale_zoom16;
1301      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="11" stroke-linecap="round"/>
1302    </Rule>
1303    <Rule>
1304      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
1305      &maxscale_zoom17;
1306      &minscale_zoom18;
1307      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="15.5" stroke-linecap="round"/>
1308    </Rule>
1309   <Rule>
1310      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
1311      &maxscale_zoom12;
1312      &minscale_zoom12;
1313      <LineSymbolizer stroke-linejoin="round" stroke="#f6e856" stroke-width="2" stroke-linecap="round"/>
1314    </Rule>
1315    <Rule>
1316      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
1317      &maxscale_zoom13;
1318      &minscale_zoom14;
1319      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="8" stroke-linecap="round"/>
1320    </Rule>
1321    <Rule>
1322      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
1323      &maxscale_zoom15;
1324      &minscale_zoom16;
1325      <LineSymbolizer stroke-linejoin="round" stroke="#f6e856" stroke-width="11" stroke-linecap="round"/>
1326    </Rule>
1327    <Rule>
1328      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
1329      &maxscale_zoom17;
1330      &minscale_zoom18;
1331      <LineSymbolizer stroke-linejoin="round" stroke="#f6e856" stroke-width="15.5" stroke-linecap="round"/>
1332    </Rule>
1333    <Rule>
1334      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
1335      &maxscale_zoom13;
1336      &minscale_zoom13;
1337      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="4" stroke-linecap="round"/>
1338    </Rule>
1339    <Rule>
1340      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
1341      &maxscale_zoom14;
1342      &minscale_zoom14;
1343      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="6" stroke-linecap="round"/>
1344    </Rule>
1345    <Rule>
1346      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
1347      &maxscale_zoom15;
1348      &minscale_zoom16;
1349      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="9.4" stroke-linecap="round"/>
1350    </Rule>
1351    <Rule>
1352      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
1353      &maxscale_zoom17;
1354      &minscale_zoom18;
1355      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="13" stroke-linecap="round"/>
1356    </Rule>
1357</Style>
1358<Style name="minor-roads-fill"> 
1359    <Rule>
1360      &maxscale_zoom12;
1361      &minscale_zoom12;
1362      <Filter>([highway] = 'proposed' or [highway]='construction') and not [construction] != ''</Filter>
1363      <LineSymbolizer stroke="#9cc" stroke-width="2"/>
1364      <LineSymbolizer stroke="white" stroke-width="2" stroke-dasharray="4,2"/>
1365    </Rule>
1366    <Rule>
1367      &maxscale_zoom12;
1368      &minscale_zoom12;
1369      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='motorway' or [construction]='motorway_link')</Filter>
1370      <LineSymbolizer stroke="#ffc982" stroke-width="1.3"/>
1371      <LineSymbolizer stroke="white" stroke-width="1.3" stroke-dasharray="4,2"/>
1372    </Rule>
1373    <Rule>
1374      &maxscale_zoom12;
1375      &minscale_zoom12;
1376      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='trunk' or [construction]='trunk_link')</Filter>
1377      <LineSymbolizer stroke="#ffb470" stroke-width="2"/>
1378      <LineSymbolizer stroke="white" stroke-width="2" stroke-dasharray="4,2"/>
1379    </Rule>
1380    <Rule>
1381      &maxscale_zoom12;
1382      &minscale_zoom12;
1383      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='primary' or [construction]='primary_link')</Filter>
1384      <LineSymbolizer stroke="#fbaa6e" stroke-width="2"/>
1385      <LineSymbolizer stroke="white" stroke-width="2" stroke-dasharray="4,2"/>
1386    </Rule>
1387    <Rule>
1388      &maxscale_zoom12;
1389      &minscale_zoom12;
1390      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='secondary' or [construction]='secondary_link')</Filter>
1391      <LineSymbolizer stroke="#f6e856" stroke-width="2"/>
1392      <LineSymbolizer stroke="white" stroke-width="2" stroke-dasharray="4,2"/>
1393    </Rule>
1394    <Rule>
1395      &maxscale_zoom13;
1396      &minscale_zoom15;
1397      <Filter>([highway] = 'proposed' or [highway]='construction') and not [construction] != ''</Filter>
1398      <LineSymbolizer stroke="#9cc" stroke-width="4"/>
1399      <LineSymbolizer stroke="white" stroke-width="3.5" stroke-dasharray="6,4"/>
1400    </Rule>
1401    <Rule>
1402      &maxscale_zoom13;
1403      &minscale_zoom15;
1404      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='motorway' or [construction]='motorway_link')</Filter>
1405      <LineSymbolizer stroke="#ffc982" stroke-width="4"/>
1406      <LineSymbolizer stroke="white" stroke-width="3.5" stroke-dasharray="6,4"/>
1407    </Rule>
1408    <Rule>
1409      &maxscale_zoom13;
1410      &minscale_zoom15;
1411      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='trunk' or [construction]='trunk_link')</Filter>
1412      <LineSymbolizer stroke="#ffb470" stroke-width="4"/>
1413      <LineSymbolizer stroke="white" stroke-width="3.5" stroke-dasharray="6,4"/>
1414    </Rule>
1415    <Rule>
1416      &maxscale_zoom13;
1417      &minscale_zoom15;
1418      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='primary' or [construction]='primary_link')</Filter>
1419      <LineSymbolizer stroke="#8d4346" stroke-width="4"/>
1420      <LineSymbolizer stroke="white" stroke-width="3.5" stroke-dasharray="6,4"/>
1421    </Rule>
1422    <Rule>
1423      &maxscale_zoom13;
1424      &minscale_zoom15;
1425      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='secondary' or [construction]='secondary_link')</Filter>
1426      <LineSymbolizer stroke="#f6e856" stroke-width="4"/>
1427      <LineSymbolizer stroke="white" stroke-width="3.5" stroke-dasharray="6,4"/>
1428    </Rule>
1429    <Rule>
1430      &maxscale_zoom13;
1431      &minscale_zoom15;
1432      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='tertiary' or [construction]='tertiary_link')</Filter>
1433      <LineSymbolizer stroke="#ffffb3" stroke-width="4"/>
1434      <LineSymbolizer stroke="white" stroke-width="3.5" stroke-dasharray="6,4"/>
1435    </Rule>
1436    <Rule>
1437      &maxscale_zoom13;
1438      &minscale_zoom15;
1439      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='residential' or [construction]='unclassified' or [construction]='living_street')</Filter>
1440      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="4"/>
1441      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3.5" stroke-dasharray="6,4"/>
1442    </Rule>
1443    <Rule>
1444      &maxscale_zoom14;
1445      &minscale_zoom15;
1446      <Filter>([highway] = 'proposed' or [highway]='construction') and [construction]='service'</Filter>
1447      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="2.5"/>
1448      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2" stroke-dasharray="6,4"/>
1449    </Rule>
1450    <Rule>
1451      &maxscale_zoom16;
1452      &minscale_zoom18;
1453      <Filter>([highway] = 'proposed' or [highway]='construction') and not [construction] != ''</Filter>
1454      <LineSymbolizer stroke="#9cc" stroke-width="8"/>
1455      <LineSymbolizer stroke="white" stroke-width="7" stroke-dasharray="8,6"/>
1456    </Rule>
1457    <Rule>
1458      &maxscale_zoom16;
1459      &minscale_zoom18;
1460      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='motorway' or [construction]='motorway_link')</Filter>
1461      <LineSymbolizer stroke="#ffc982" stroke-width="8"/>
1462      <LineSymbolizer stroke="white" stroke-width="7" stroke-dasharray="8,6"/>
1463    </Rule>
1464    <Rule>
1465      &maxscale_zoom16;
1466      &minscale_zoom18;
1467      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='trunk' or [construction]='trunk_link')</Filter>
1468      <LineSymbolizer stroke="#ffb470" stroke-width="8"/>
1469      <LineSymbolizer stroke="white" stroke-width="7" stroke-dasharray="8,6"/>
1470    </Rule>
1471    <Rule>
1472      &maxscale_zoom16;
1473      &minscale_zoom18;
1474      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='primary' or [construction]='primary_link')</Filter>
1475      <LineSymbolizer stroke="#fbaa6e" stroke-width="8"/>
1476      <LineSymbolizer stroke="white" stroke-width="7" stroke-dasharray="8,6"/>
1477    </Rule>
1478    <Rule>
1479      &maxscale_zoom16;
1480      &minscale_zoom18;
1481      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='secondary' or [construction]='secondary_link')</Filter>
1482      <LineSymbolizer stroke="#f6e856" stroke-width="8"/>
1483      <LineSymbolizer stroke="white" stroke-width="7" stroke-dasharray="8,6"/>
1484    </Rule>
1485    <Rule>
1486      &maxscale_zoom16;
1487      &minscale_zoom18;
1488      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='tertiary' or [construction]='tertiary_link')</Filter>
1489      <LineSymbolizer stroke="#ffffb3" stroke-width="8"/>
1490      <LineSymbolizer stroke="white" stroke-width="7" stroke-dasharray="8,6"/>
1491    </Rule>
1492    <Rule>
1493      &maxscale_zoom16;
1494      &minscale_zoom18;
1495      <Filter>([highway] = 'proposed' or [highway]='construction') and ([construction]='residential' or [construction]='unclassified' or [construction]='living_street')</Filter>
1496      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="8"/>
1497      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="7" stroke-dasharray="8,6"/>
1498    </Rule>
1499    <Rule>
1500      &maxscale_zoom16;
1501      &minscale_zoom18;
1502      <Filter>([highway] = 'proposed' or [highway]='construction') and [construction]='service'</Filter>
1503      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="7"/>
1504      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="6" stroke-dasharray="8,6"/>
1505    </Rule>
1506    <Rule>
1507      &maxscale_zoom15;
1508      &minscale_zoom18;
1509      <Filter>([highway] = 'proposed' or [highway]='construction') and [construction]='cycleway'</Filter>
1510      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3" stroke-linecap="round" stroke-opacity="0.4"/>
1511      <LineSymbolizer stroke-linejoin="round" stroke="#c8c8c8" stroke-width="1.2" stroke-dasharray="2,6" stroke-linecap="round"/>
1512    </Rule>
1513    <Rule>
1514      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1515      &maxscale_zoom12;
1516      &minscale_zoom12;
1517      <LineSymbolizer stroke="#ffc982" stroke-width="1.3"/>
1518    </Rule>
1519    <Rule>
1520      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1521      &maxscale_zoom13;
1522      &minscale_zoom13;
1523      <LineSymbolizer stroke-linejoin="round" stroke="#ffc982" stroke-width="3.5" stroke-linecap="round"/>
1524    </Rule>
1525    <Rule>
1526      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1527      &maxscale_zoom14;
1528      &minscale_zoom14;
1529      <LineSymbolizer stroke-linejoin="round" stroke="#ffc982" stroke-width="4" stroke-linecap="round"/>
1530    </Rule>
1531    <Rule>
1532      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1533      &maxscale_zoom15;
1534      &minscale_zoom15;
1535      <LineSymbolizer stroke-linejoin="round" stroke="#ffc982" stroke-width="6.5" stroke-linecap="round"/>
1536    </Rule>
1537    <Rule>
1538      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1539      &maxscale_zoom16;
1540      &minscale_zoom16;
1541      <LineSymbolizer stroke-linejoin="round" stroke="#ffc982" stroke-width="7.5" stroke-linecap="round"/>
1542    </Rule>
1543    <Rule>
1544      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
1545      &maxscale_zoom17;
1546      &minscale_zoom18;
1547      <LineSymbolizer stroke-linejoin="round" stroke="#ffc982" stroke-width="8.5" stroke-linecap="round"/>
1548    </Rule>
1549    <Rule>
1550      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
1551      &maxscale_zoom12;
1552      &minscale_zoom12;
1553      <LineSymbolizer stroke-linejoin="round" stroke="#ffa858" stroke-width="2.5" stroke-linecap="round"/>
1554    </Rule>
1555    <Rule>
1556      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
1557      &maxscale_zoom13;
1558      &minscale_zoom14;
1559      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="7" stroke-linecap="round"/>
1560    </Rule>
1561    <Rule>
1562      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
1563      &maxscale_zoom15;
1564      &minscale_zoom16;
1565      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="11" stroke-linecap="round"/>
1566    </Rule>
1567    <Rule>
1568      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
1569      &maxscale_zoom17;
1570      &minscale_zoom18;
1571      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="15.5" stroke-linecap="round"/>
1572   </Rule>
1573   <Rule>
1574      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
1575      &maxscale_zoom11;
1576      &minscale_zoom12;
1577      <LineSymbolizer stroke-linejoin="round" stroke="#ffa858" stroke-width="2.5" stroke-linecap="round"/>
1578    </Rule>
1579    <Rule>
1580      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
1581      &maxscale_zoom13;
1582      &minscale_zoom14;
1583      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="7" stroke-linecap="round"/>
1584    </Rule> 
1585    <Rule>
1586      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
1587      &maxscale_zoom15;
1588      &minscale_zoom16;
1589      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="11" stroke-linecap="round"/>
1590    </Rule>
1591    <Rule>
1592      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
1593      &maxscale_zoom17;
1594      &minscale_zoom18;
1595      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="15.5" stroke-linecap="round"/>
1596    </Rule>
1597   <Rule>
1598      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
1599      &maxscale_zoom12;
1600      &minscale_zoom12;
1601      <LineSymbolizer stroke-linejoin="round" stroke="#f6e856" stroke-width="2" stroke-linecap="round"/>
1602    </Rule>
1603    <Rule>
1604      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
1605      &maxscale_zoom13;
1606      &minscale_zoom14;
1607      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="6.5" stroke-linecap="round"/>
1608    </Rule>
1609    <Rule>
1610      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
1611      &maxscale_zoom15;
1612      &minscale_zoom16;
1613      <LineSymbolizer stroke-linejoin="round" stroke="#f6e856" stroke-width="10" stroke-linecap="round"/>
1614    </Rule>
1615    <Rule>
1616      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
1617      &maxscale_zoom17;
1618      &minscale_zoom18;
1619      <LineSymbolizer stroke-linejoin="round" stroke="#f6e856" stroke-width="15.5" stroke-linecap="round"/>
1620    </Rule>
1621    <Rule>
1622      &maxscale_zoom13;
1623      &minscale_zoom18;
1624      <Filter>[railway] = 'rail' and [tunnel] = 'yes'</Filter>
1625      <LineSymbolizer stroke-linejoin="round" stroke="#ffffff" stroke-width="3" stroke-dasharray="1,9"/>
1626      <LineSymbolizer stroke-linejoin="round" stroke="#fdfdfd" stroke-width="3" stroke-dasharray="0,1,1,8"/>
1627      <LineSymbolizer stroke-linejoin="round" stroke="#ececec" stroke-width="3" stroke-dasharray="0,2,1,7"/>
1628      <LineSymbolizer stroke-linejoin="round" stroke="#cacaca" stroke-width="3" stroke-dasharray="0,3,1,6"/>
1629      <LineSymbolizer stroke-linejoin="round" stroke="#afafaf" stroke-width="3" stroke-dasharray="0,4,1,5"/>
1630      <LineSymbolizer stroke-linejoin="round" stroke="#a1a1a1" stroke-width="3" stroke-dasharray="0,5,1,4"/>
1631      <LineSymbolizer stroke-linejoin="round" stroke="#9b9b9b" stroke-width="3" stroke-dasharray="0,6,1,3"/>
1632    </Rule>
1633    <!-- disable abandoned railways
1634    <Rule>
1635      &maxscale_zoom13;
1636      &minscale_zoom18;
1637      <Filter>([railway] = 'disused' or [railway] = 'abandoned' or [railway]='construction') and not [highway] != ''</Filter>
1638      <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="2" stroke-dasharray="2,4"/>
1639    </Rule>
1640    -->
1641    <Rule>
1642      &maxscale_zoom13;
1643      &minscale_zoom13;
1644      <Filter>[railway] = 'rail' and not [tunnel] = 'yes'</Filter>
1645      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="3"/>
1646      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1" stroke-dasharray="8,12"/>
1647    </Rule>
1648    <Rule>
1649      &maxscale_zoom14;
1650      &minscale_zoom18;
1651      <Filter>[railway] = 'rail' and not [tunnel]='yes'</Filter>
1652      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="3"/>
1653      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1" stroke-dasharray="0,11,8,1"/>
1654    </Rule>
1655    <Rule>
1656      &maxscale_zoom11;
1657      &minscale_zoom12;
1658      <Filter>[railway] = 'spur-siding-yard'</Filter>
1659      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="1"/>
1660    </Rule>
1661    <Rule>
1662      &maxscale_zoom13;
1663      &minscale_zoom18;
1664      <Filter>[railway] = 'spur-siding-yard' and [tunnel] = 'yes'</Filter>
1665      <LineSymbolizer stroke-linejoin="round" stroke="#ffffff" stroke-width="2" stroke-dasharray="1,9"/>
1666      <LineSymbolizer stroke-linejoin="round" stroke="#fdfdfd" stroke-width="2" stroke-dasharray="0,1,1,8"/>
1667      <LineSymbolizer stroke-linejoin="round" stroke="#ececec" stroke-width="2" stroke-dasharray="0,2,1,7"/>
1668      <LineSymbolizer stroke-linejoin="round" stroke="#cacaca" stroke-width="2" stroke-dasharray="0,3,1,6"/>
1669      <LineSymbolizer stroke-linejoin="round" stroke="#afafaf" stroke-width="2" stroke-dasharray="0,4,1,5"/>
1670      <LineSymbolizer stroke-linejoin="round" stroke="#a1a1a1" stroke-width="2" stroke-dasharray="0,5,1,4"/>
1671      <LineSymbolizer stroke-linejoin="round" stroke="#9b9b9b" stroke-width="2" stroke-dasharray="0,6,1,3"/>
1672    </Rule>
1673    <Rule>
1674      &maxscale_zoom13;
1675      &minscale_zoom18;
1676      <Filter>[railway] = 'spur-siding-yard' and not [tunnel] = 'yes'</Filter>
1677      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="2"/>
1678      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="0.8" stroke-dasharray="0,8,11,1"/>
1679    </Rule>
1680    <Rule>
1681      &maxscale_zoom13;
1682      &minscale_zoom18;
1683      <Filter>([railway]='narrow_gauge' or [railway]='funicular') and not [tunnel]='yes'</Filter>
1684      <LineSymbolizer stroke="#909090" stroke-width="2"/>
1685    </Rule>
1686    <Rule>
1687      &maxscale_zoom13;
1688      &minscale_zoom18;
1689      <Filter>([railway]='narrow_gauge' or [railway]='funicular') and [tunnel]='yes'</Filter>
1690      <LineSymbolizer stroke="#909090" stroke-width="5" stroke-dasharray="5,3"/>
1691      <LineSymbolizer stroke="#fff" stroke-width="4"/>
1692      <LineSymbolizer stroke="#aaa" stroke-width="1.5"/>
1693    </Rule>
1694    <Rule>
1695      &maxscale_zoom15;
1696      &minscale_zoom18;
1697      <Filter>[railway]='miniature'</Filter>
1698      <LineSymbolizer stroke="#999" stroke-width="1.2"/>
1699      <LineSymbolizer stroke="#999" stroke-width="3" stroke-dasharray="1,10"/>
1700    </Rule>
1701    <Rule>
1702      &maxscale_zoom13;
1703      &minscale_zoom14;
1704      <Filter>[railway]='tram' and [tunnel]='yes'</Filter>
1705      <LineSymbolizer stroke="#444" stroke-width="1" stroke-dasharray="5,3"/>
1706    </Rule>
1707    <Rule>
1708      &maxscale_zoom15;
1709      &minscale_zoom18;
1710      <Filter>[railway]='tram' and [tunnel]='yes'</Filter>
1711      <LineSymbolizer stroke="#444" stroke-width="2" stroke-dasharray="5,3"/>
1712    </Rule>
1713    <Rule>
1714      &maxscale_zoom13;
1715      &minscale_zoom18;
1716      <Filter>[railway]='light_rail' and [tunnel] = 'yes'</Filter>
1717      <LineSymbolizer stroke="#858585" stroke-width="2" stroke-dasharray="5,3"/>
1718    </Rule>
1719     <Rule>
1720      &maxscale_zoom13;
1721      &minscale_zoom18;
1722      <Filter>[railway]='light_rail' and not [tunnel] = 'yes'</Filter>
1723      <LineSymbolizer stroke="#a0a0a0" stroke-width="2"/>
1724    </Rule>
1725    <Rule>
1726      &maxscale_zoom12;
1727      &minscale_zoom18;
1728      <Filter>[railway]='subway' and [tunnel] = 'yes'</Filter>
1729      <LineSymbolizer stroke="#999" stroke-width="2" stroke-dasharray="5,3"/>
1730    </Rule>
1731    <Rule>
1732      &maxscale_zoom12;
1733      &minscale_zoom18;
1734      <Filter>[railway]='subway' and not [tunnel] = 'yes'</Filter>
1735      <LineSymbolizer stroke="#999" stroke-width="2"/>
1736    </Rule>
1737    <Rule>
1738      <Filter>[highway] = 'tertiary' or [highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
1739      &maxscale_zoom10;
1740      &minscale_zoom12;
1741      <LineSymbolizer stroke="#bbb" stroke-width="0.8"/>
1742    </Rule>
1743    <Rule>
1744      <Filter>[highway] = 'road'</Filter>
1745      &maxscale_zoom13;
1746      &minscale_zoom13;
1747      <LineSymbolizer stroke-linejoin="round" stroke="#ddd" stroke-width="2" stroke-linecap="round"/>
1748    </Rule>
1749    <Rule>
1750      <Filter>[highway] = 'road'</Filter>
1751      &maxscale_zoom14;
1752      &minscale_zoom14;
1753      <LineSymbolizer stroke-linejoin="round" stroke="#ddd" stroke-width="3" stroke-linecap="round"/>
1754    </Rule>
1755    <Rule>
1756      <Filter>[highway] = 'road'</Filter>
1757      &maxscale_zoom15;
1758      &minscale_zoom15;
1759      <LineSymbolizer stroke-linejoin="round" stroke="#ddd" stroke-width="6.5" stroke-linecap="round"/>
1760    </Rule>
1761    <Rule>
1762      <Filter>[highway] = 'road'</Filter>
1763      &maxscale_zoom16;
1764      &minscale_zoom16;
1765      <LineSymbolizer stroke-linejoin="round" stroke="#ddd" stroke-width="9.4" stroke-linecap="round"/>
1766    </Rule>
1767    <Rule>
1768      <Filter>[highway] = 'road'</Filter>
1769      &maxscale_zoom17;
1770      &minscale_zoom18;
1771      <LineSymbolizer stroke-linejoin="round" stroke="#ddd" stroke-width="13" stroke-linecap="round"/>
1772    </Rule>
1773    <Rule>
1774      <Filter>[highway] = 'residential'</Filter>
1775      &maxscale_zoom10;
1776      &minscale_zoom10;
1777      <LineSymbolizer stroke="#c3c3c3" stroke-width="1"/>
1778    </Rule>
1779    <Rule>
1780      <Filter>[highway] = 'residential'</Filter>
1781      &maxscale_zoom11;
1782      &minscale_zoom12;
1783      <LineSymbolizer stroke="#c3c3c3" stroke-width="1"/>
1784    </Rule>
1785    <Rule>
1786      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
1787      &maxscale_zoom13;
1788      &minscale_zoom13;
1789      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="2" stroke-linecap="round"/>
1790    </Rule>
1791    <Rule>
1792      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
1793      &maxscale_zoom14;
1794      &minscale_zoom14;
1795      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
1796    </Rule>
1797    <Rule>
1798      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
1799      &maxscale_zoom15;
1800      &minscale_zoom15;
1801      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="6.5" stroke-linecap="round"/>
1802    </Rule>
1803    <Rule>
1804      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
1805      &maxscale_zoom16;
1806      &minscale_zoom16;
1807      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="9.4" stroke-linecap="round"/>
1808    </Rule>
1809    <Rule>
1810      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
1811      &maxscale_zoom17;
1812      &minscale_zoom18;
1813      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="13" stroke-linecap="round"/>
1814    </Rule>
1815    <Rule>
1816      <Filter>[highway] = 'living_street'</Filter>
1817      &maxscale_zoom12;
1818      &minscale_zoom13;
1819      <LineSymbolizer stroke-linejoin="round" stroke="#ccc" stroke-width="1.5" stroke-linecap="round"/>
1820    </Rule>
1821    <Rule>
1822      <Filter>[highway] = 'living_street'</Filter>
1823      &maxscale_zoom14;
1824      &minscale_zoom14;
1825      <LineSymbolizer stroke-linejoin="round" stroke="#ccc" stroke-width="3" stroke-linecap="round"/>
1826    </Rule>
1827    <Rule>
1828      <Filter>[highway] = 'living_street'</Filter>
1829      &maxscale_zoom15;
1830      &minscale_zoom15;
1831      <LineSymbolizer stroke-linejoin="round" stroke="#ccc" stroke-width="4.7" stroke-linecap="round"/>
1832    </Rule>
1833    <Rule>
1834      <Filter>[highway] = 'living_street'</Filter>
1835      &maxscale_zoom16;
1836      &minscale_zoom16;
1837      <LineSymbolizer stroke-linejoin="round" stroke="#ccc" stroke-width="7.4" stroke-linecap="round"/>
1838    </Rule>
1839    <Rule>
1840      <Filter>[highway] = 'living_street'</Filter>
1841      &maxscale_zoom17;
1842      &minscale_zoom18;
1843      <LineSymbolizer stroke-linejoin="round" stroke="#ccc" stroke-width="13" stroke-linecap="round"/>
1844    </Rule>
1845    <Rule>
1846      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
1847      &maxscale_zoom13;
1848      &minscale_zoom13;
1849      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="4" stroke-linecap="round"/>
1850    </Rule>
1851    <Rule>
1852      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
1853      &maxscale_zoom14;
1854      &minscale_zoom14;
1855      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="6" stroke-linecap="round"/>
1856    </Rule>
1857    <Rule>
1858      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
1859      &maxscale_zoom15;
1860      &minscale_zoom16;
1861      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="9.4" stroke-linecap="round"/>
1862    </Rule>
1863    <Rule>
1864      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
1865      &maxscale_zoom17;
1866      &minscale_zoom18;
1867      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="13" stroke-linecap="round"/>
1868    </Rule>
1869    <Rule>
1870      <Filter>[highway] = 'service' and not [service]='INT-minor'</Filter>
1871      &maxscale_zoom13;
1872      &minscale_zoom13;
1873      <LineSymbolizer stroke="#bbbbbb" stroke-width="1"/>
1874    </Rule>
1875    <Rule>
1876      <Filter>[highway] = 'service' and not [service]='INT-minor'</Filter>
1877      &maxscale_zoom14;
1878      &minscale_zoom15;
1879      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2" stroke-linecap="round"/>
1880   </Rule>
1881   <Rule>
1882      <Filter>[highway] = 'service' and not [service]='INT-minor'</Filter>
1883      &maxscale_zoom16;
1884      &minscale_zoom18;
1885      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="6" stroke-linecap="round"/>
1886   </Rule>
1887   <Rule>
1888      <Filter>[highway] = 'service' and [service]='INT-minor'</Filter>
1889      &maxscale_zoom16;
1890      &minscale_zoom18;
1891      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
1892   </Rule>
1893   <Rule>
1894      <Filter>[highway] = 'pedestrian'</Filter>
1895      &maxscale_zoom13;
1896      &minscale_zoom13;
1897      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="1.5" stroke-linecap="round"/>
1898    </Rule>
1899    <Rule>
1900      <Filter>[highway] = 'pedestrian'</Filter>
1901      &maxscale_zoom14;
1902      &minscale_zoom14;
1903      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="3" stroke-linecap="round"/>
1904    </Rule>
1905    <Rule>
1906      <Filter>[highway] = 'pedestrian'</Filter>
1907      &maxscale_zoom15;
1908      &minscale_zoom15;
1909      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="5.5" stroke-linecap="round"/>
1910    </Rule>
1911    <Rule>
1912      <Filter>[highway] = 'pedestrian'</Filter>
1913      &maxscale_zoom16;
1914      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="8" stroke-linecap="round"/>
1915    </Rule>
1916    <Rule>
1917       <Filter>[highway] = 'platform' or [railway] = 'platform'</Filter>
1918       &maxscale_zoom16;
1919       <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="6" stroke-linecap="round"/>
1920    </Rule>
1921    <Rule>
1922      <Filter>[railway] = 'turntable'</Filter>
1923      &maxscale_zoom16;
1924      <LineSymbolizer stroke="#999" stroke-width="1.5"/>
1925    </Rule>
1926    <Rule>
1927      <Filter>[highway] = 'steps'</Filter>
1928      &maxscale_zoom15;
1929      <LineSymbolizer stroke="#c39559" stroke-width="5.0" stroke-dasharray="2,1"/>
1930    </Rule> 
1931    <Rule>
1932      <Filter>([highway] = 'bridleway' or ([highway] = 'path' and [horse] = 'designated')) and not [tunnel]='yes'</Filter>
1933      &maxscale_zoom13;
1934      <LineSymbolizer stroke-linejoin="round" stroke="#df66d8" stroke-width="3" stroke-linecap="round" stroke-opacity="0.4"/>
1935      <LineSymbolizer stroke="green" stroke-width="1.2" stroke-dasharray="4,2"/>
1936    </Rule> 
1937    <Rule>
1938      <Filter>([highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')) and not [tunnel]='yes'</Filter>
1939      &maxscale_zoom13;
1940      &minscale_zoom14;
1941      <LineSymbolizer stroke-linejoin="round" stroke="#c8c8c8" stroke-width="1.1" stroke-linecap="round"/>
1942    </Rule>
1943    <Rule>
1944      <Filter>([highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')) and not [tunnel]='yes'</Filter>
1945      &maxscale_zoom15;
1946      <LineSymbolizer stroke="#e7e7e7" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
1947    </Rule>
1948    <Rule>
1949      <Filter>[highway] = 'path' and not ([bicycle] = 'designated' or [foot] = 'designated' or [horse] = 'designated') and not [tunnel] = 'yes'</Filter> 
1950      &maxscale_zoom13;
1951      &minscale_zoom13;
1952      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2" stroke-linecap="round" stroke-opacity="0.4"/>
1953      <LineSymbolizer stroke-linejoin="round" stroke="#996600" stroke-width="1.2" stroke-dasharray="6,3" stroke-linecap="round" stroke-opacity="0.4"/>
1954    </Rule>
1955    <Rule>
1956      <Filter>[highway] = 'path' and not ([bicycle] = 'designated' or [foot] = 'designated' or [horse] = 'designated') and not [tunnel] = 'yes'</Filter> 
1957      &maxscale_zoom14;
1958      &minscale_zoom14;
1959      <LineSymbolizer stroke-linejoin="round" stroke="#644201" stroke-width="0.5" stroke-dasharray="6,3" stroke-linecap="round"/>
1960    </Rule>
1961    <Rule>
1962      <Filter>[highway] = 'path' and not ([bicycle] = 'designated' or [foot] = 'designated' or [horse] = 'designated') and not [tunnel] = 'yes'</Filter> 
1963      &maxscale_zoom15;
1964      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1.0" stroke-linecap="round" stroke-opacity="0.4"/>
1965      <LineSymbolizer stroke-linejoin="round" stroke="black" stroke-width="0.5" stroke-dasharray="6,3" stroke-linecap="round"/>
1966    </Rule>
1967    <Rule>
1968       <Filter>[highway] = 'platform' or [railway] = 'platform'</Filter>
1969       &maxscale_zoom16;
1970       <LineSymbolizer stroke-linejoin="round" stroke="#bbbbbb" stroke-width="4" stroke-linecap="round"/>
1971     </Rule>
1972    <Rule>
1973      <Filter>[highway] = 'steps'</Filter>
1974      &maxscale_zoom14;
1975      &minscale_zoom14;
1976      <LineSymbolizer stroke="#fff" stroke-width="6" stroke-opacity="0.4"/>
1977      <LineSymbolizer stroke-linejoin="round" stroke="salmon" stroke-width="2.0" stroke-dasharray="1,3" stroke-linecap="round"/>
1978    </Rule>
1979    <Rule>
1980      <Filter>([highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')) and not [tunnel] = 'yes'</Filter>
1981      &maxscale_zoom13;
1982      &minscale_zoom13;
1983      <LineSymbolizer stroke="#c8c8c8" stroke-width="1.2" stroke-linejoin="round" stroke-linecap="round"/>
1984    </Rule>
1985    <Rule>
1986      <Filter>([highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')) and not [tunnel] = 'yes'</Filter>
1987      &maxscale_zoom14;
1988      &minscale_zoom14;
1989      <LineSymbolizer stroke="#83cfe8" stroke-width="1.2" stroke-linejoin="round" stroke-linecap="round"/>
1990    </Rule>
1991    <Rule>
1992      <Filter>([highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')) and not [tunnel] = 'yes'</Filter>
1993      &maxscale_zoom15;
1994      <LineSymbolizer stroke="#f1f1f1" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"/>
1995    </Rule>
1996    <Rule>
1997      <Filter>[highway] = 'byway'</Filter>
1998      &maxscale_zoom13;
1999      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4" stroke-linecap="round" stroke-opacity="0.4"/>
2000      <LineSymbolizer stroke-linejoin="round" stroke="#ffcc00" stroke-width="1.5" stroke-dasharray="3,4" stroke-linecap="round"/>
2001    </Rule>
2002    <Rule>
2003      <Filter>[highway] = 'track'</Filter>
2004      &maxscale_zoom13;
2005      &minscale_zoom13;
2006      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1.7" stroke-linecap="round" stroke-opacity="0.4"/>
2007      <LineSymbolizer stroke-linejoin="round" stroke="#99742b" stroke-width="1.2" stroke-linecap="round" stroke-opacity="0.4"/>
2008     </Rule>   
2009     <Rule>
2010           <Filter>[highway] = 'track'</Filter>
2011           &maxscale_zoom14;
2012           &minscale_zoom14;
2013           <LineSymbolizer stroke="white" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" stroke-opacity="0.4"/>
2014           <LineSymbolizer stroke="#99742b" stroke-width="1.4" stroke-linejoin="round" stroke-linecap="round" stroke-opacity="0.5"/>
2015    </Rule> 
2016    <Rule>
2017      <Filter>[highway] = 'unsurfaced'</Filter>
2018      &maxscale_zoom13;
2019      &minscale_zoom13;
2020      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="3.5" stroke-linecap="round" stroke-opacity="0.4"/>
2021      <LineSymbolizer stroke-linejoin="round" stroke="#debd9c" stroke-width="2.5" stroke-dasharray="2,4" stroke-linecap="round"/>
2022    </Rule>
2023    <Rule>
2024      <Filter>[highway] = 'unsurfaced'</Filter>
2025      &maxscale_zoom14;
2026      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="5" stroke-linecap="round" stroke-opacity="0.4"/>
2027      <LineSymbolizer stroke-linejoin="round" stroke="#debd9c" stroke-width="4" stroke-dasharray="4,6" stroke-linecap="round"/>
2028    </Rule>
2029    <Rule>
2030      <Filter>[aeroway] = 'runway'</Filter>
2031      &maxscale_zoom11;
2032      &minscale_zoom11;
2033      <LineSymbolizer stroke="#bbc" stroke-width="2"/>
2034    </Rule>
2035    <Rule>
2036      <Filter>[aeroway] = 'runway'</Filter>
2037      &maxscale_zoom12;
2038      &minscale_zoom12;
2039      <LineSymbolizer stroke="#bbc" stroke-width="4"/>
2040    </Rule>
2041    <Rule>
2042      <Filter>[aeroway] = 'runway'</Filter>
2043      &maxscale_zoom13;
2044      &minscale_zoom13;
2045      <LineSymbolizer stroke="#bbc" stroke-width="7"/>
2046    </Rule>
2047    <Rule>
2048      <Filter>[aeroway] = 'runway' and not [bridge]='yes'</Filter>
2049      &maxscale_zoom14;
2050      <LineSymbolizer stroke="#bbc" stroke-width="18"/>
2051    </Rule>
2052    <Rule>
2053      <Filter>[aeroway] = 'taxiway'</Filter>
2054      &maxscale_zoom11;
2055      &minscale_zoom13;
2056      <LineSymbolizer stroke="#bbc" stroke-width="1"/>
2057    </Rule>
2058    <Rule>
2059      <Filter>[aeroway] = 'taxiway' and not [bridge]='yes'</Filter>
2060      &maxscale_zoom14;
2061      &minscale_zoom14;
2062      <LineSymbolizer stroke="#bbc" stroke-width="4"/>
2063    </Rule>
2064    <Rule>
2065      <Filter>[aeroway] = 'taxiway' and not [bridge]='yes'</Filter>
2066      &maxscale_zoom15;
2067      <LineSymbolizer stroke="#bbc" stroke-width="6"/>
2068    </Rule>
2069</Style>
2070<Style name="access">
2071<!-- <Rule>
2072      <Filter>[access] = 'permissive' and ([highway]='unclassified' or [highway]='residential')</Filter>
2073      &maxscale_zoom15;
2074      &minscale_zoom15;
2075      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#cf9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="6"/>
2076    </Rule>
2077    <Rule>
2078      <Filter>[access] = 'permissive' and ([highway] = 'service' and not [service] = 'INT-minor')</Filter>
2079      &maxscale_zoom15;
2080      &minscale_zoom15;
2081      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#cf9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="3"/>
2082    </Rule>
2083     <Rule>
2084      <Filter>[access] = 'permissive' and ([highway]='unclassified' or [highway]='residential')</Filter>
2085      &maxscale_zoom16;
2086      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#cf9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="6"/>
2087    </Rule>
2088     <Rule>
2089      <Filter>[access] = 'permissive' and [highway]='service'</Filter>
2090      &maxscale_zoom16;
2091      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#cf9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="4"/>
2092    </Rule>
2093-->
2094    <Rule>
2095      <Filter>[access]='destination' and ([highway]='unclassified' or [highway]='residential')</Filter>
2096      &maxscale_zoom15;
2097      &minscale_zoom15;
2098      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#c2e0ff" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="6"/>
2099    </Rule>
2100    <Rule>
2101      <Filter>[access]='destination' and ([highway] = 'service' and not [service] = 'INT-minor')</Filter>
2102      &maxscale_zoom15;
2103      &minscale_zoom15;
2104      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#c2e0ff" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="3"/>
2105    </Rule>
2106    <Rule>
2107      <Filter>[access]='destination' and ([highway]='unclassified' or [highway]='residential')</Filter>
2108      &maxscale_zoom16;
2109      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#c2e0ff" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="6"/>
2110    </Rule>
2111    <Rule>
2112      <Filter>[access]='destination' and [highway]='service'</Filter>
2113      &maxscale_zoom16;
2114      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#c2e0ff" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="4"/>
2115    </Rule>
2116    <Rule>
2117      <Filter>([access] = 'private' or [access] = 'no') and not ([highway] = 'service' or [highway] = 'footway' or [highway] = 'cycleway' or [highway] = 'path')</Filter>
2118      &maxscale_zoom15;
2119      &minscale_zoom15;
2120      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#efa9a9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="6"/>
2121    </Rule>
2122    <Rule>
2123      <Filter>([access] = 'private' or [access] = 'no') and ([highway] = 'service' and not [service] = 'INT-minor')</Filter>
2124      &maxscale_zoom15;
2125      &minscale_zoom15;
2126      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#efa9a9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="3"/>
2127    </Rule>
2128    <Rule>
2129      <Filter>([access] = 'private' or [access] = 'no') and ([highway] = 'footway' or [highway] = 'cycleway' or [highway] = 'path')</Filter>
2130      &maxscale_zoom15;
2131      &minscale_zoom15;
2132      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#efa9a9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="3"/>
2133    </Rule>
2134    <Rule>
2135      <Filter>([access] = 'private' or [access] = 'no') and not ([highway] = 'footway' or [highway] = 'cycleway' or [highway] = 'path')</Filter>
2136      &maxscale_zoom16;
2137      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#efa9a9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="6"/>
2138    </Rule>
2139    <Rule>
2140      <Filter>([access] = 'private' or [access] = 'no') and ([highway] = 'footway' or [highway] = 'cycleway' or [highway] = 'path')</Filter>
2141      &maxscale_zoom16;
2142      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#efa9a9" stroke-linecap="round" stroke-dasharray="6,8" stroke-width="1.7"/>
2143    </Rule>
2144</Style>
2145<Style name="footbikecycle-tunnels">
2146    <Rule>
2147      <Filter>[highway] = 'bridleway' or ([highway] = 'path' and [horse] = 'designated')</Filter>
2148      &maxscale_zoom13;
2149      <LineSymbolizer stroke="grey" stroke-width="5" stroke-dasharray="4,2"/>
2150      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
2151      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="green" stroke-linecap="round" stroke-dasharray="4,2" stroke-width="2"/>
2152    </Rule>
2153    <Rule>
2154      <Filter>[highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')</Filter>
2155      &maxscale_zoom13;
2156      <LineSymbolizer stroke="grey" stroke-width="5.5" stroke-dasharray="4,2"/>
2157      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="3.5" stroke-linecap="round"/>
2158      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="salmon" stroke-linecap="round" stroke-dasharray="1,3" stroke-width="2.5"/>
2159    </Rule>
2160    <Rule>
2161      <Filter>[highway] = 'path' and not ([bicycle] = 'designated' or [foot] = 'designated' or [horse] = 'designated')</Filter>
2162      &maxscale_zoom13;
2163      <LineSymbolizer stroke="grey" stroke-width="5.5" stroke-dasharray="4,2"/>
2164      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1.0" stroke-linecap="round" stroke-opacity="0.4"/>
2165      <LineSymbolizer stroke-linejoin="round" stroke="black" stroke-width="0.5" stroke-dasharray="6,3" stroke-linecap="round"/>
2166    </Rule>
2167    <Rule>
2168      <Filter>[highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')</Filter>
2169      &maxscale_zoom13;
2170      <LineSymbolizer stroke="grey" stroke-width="5" stroke-dasharray="4,2"/>
2171      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3" stroke-linecap="round"/>
2172      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="blue" stroke-linecap="round" stroke-dasharray="1,3" stroke-width="2"/>
2173   </Rule>
2174</Style>
2175<Style name="tracks-notunnel-nobridge">
2176    <Rule>
2177      <Filter>[tracktype]='grade1'</Filter>
2178      &maxscale_zoom15;
2179      <LineSymbolizer stroke="#b37700" stroke-width="2.6" stroke-linejoin="round" stroke-linecap="round"/>
2180      <LineSymbolizer stroke="#f1f1f1" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"/>
2181    </Rule>
2182    <Rule>
2183      <Filter>[tracktype]='grade2'</Filter>
2184      &maxscale_zoom15;
2185      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-opacity="0.4"/>
2186      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.8" stroke="#a87000" stroke-linecap="round" stroke-dasharray="9,4" stroke-width="1"/>
2187    </Rule>
2188    <Rule>
2189      <Filter>[tracktype]='grade3'</Filter>
2190      &maxscale_zoom15;
2191      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-opacity="0.4"/>
2192      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.8" stroke="#996600" stroke-linecap="round" stroke-dasharray="3,4" stroke-width="1"/>
2193    </Rule>
2194    <Rule>
2195      <Filter>[tracktype]='grade4'</Filter>
2196      &maxscale_zoom15;
2197      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-opacity="0.4"/>
2198      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.8" stroke="#996600" stroke-linecap="round" stroke-dasharray="4,7,1,5" stroke-width="1.5"/>
2199    </Rule>
2200    <Rule>
2201      <Filter>[tracktype]='grade5'</Filter>
2202      &maxscale_zoom15;
2203      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-opacity="0.4"/>
2204      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.8" stroke="#996600" stroke-linecap="round" stroke-dasharray="1,5" stroke-width="1.5"/>
2205    </Rule>
2206    <Rule>
2207      <ElseFilter/>
2208      &maxscale_zoom15;
2209      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-opacity="0.4"/>
2210      <LineSymbolizer stroke-linejoin="round" stroke="#996600" stroke-width="1" stroke-dasharray="3,4" stroke-linecap="round"/>
2211     </Rule>   
2212</Style>
2213<Style name="tracks-tunnels">
2214    <Rule>
2215      <Filter>[tracktype]='grade1'</Filter>
2216      &maxscale_zoom15;
2217      <LineSymbolizer stroke="grey" stroke-width="4.5" stroke-dasharray="4,2"/>
2218      <LineSymbolizer stroke="white" stroke-width="3"/>
2219      <LineSymbolizer stroke="#b37700" stroke-width="1.5" stroke-opacity="0.5"/>
2220    </Rule>
2221    <Rule>
2222      <Filter>[tracktype]='grade2'</Filter>
2223      &maxscale_zoom15;
2224      <LineSymbolizer stroke="grey" stroke-width="4" stroke-dasharray="4,2"/>
2225      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
2226      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#a87000" stroke-linecap="round" stroke-dasharray="3,4" stroke-width="1"/>
2227    </Rule>
2228    <Rule>
2229      <Filter>[tracktype]='grade3'</Filter>
2230      &maxscale_zoom15;
2231      <LineSymbolizer stroke="grey" stroke-width="4" stroke-dasharray="4,2"/>
2232      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3" stroke-linecap="round"/>
2233      <LineSymbolizer stroke-linejoin="round" stroke="#996600" stroke-width="1.5" stroke-linecap="round" stroke-opacity="0.5"/>
2234    </Rule>
2235    <Rule>
2236      <Filter>[tracktype]='grade4'</Filter>
2237      &maxscale_zoom15;
2238      <LineSymbolizer stroke="grey" stroke-width="4" stroke-dasharray="4,2"/>
2239      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
2240      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#996600" stroke-linecap="round" stroke-dasharray="4,7,1,5" stroke-width="1.5"/>
2241    </Rule>
2242    <Rule>
2243      <Filter>[tracktype]='grade5'</Filter>
2244      &maxscale_zoom15;
2245      <LineSymbolizer stroke="grey" stroke-width="4" stroke-dasharray="4,2"/>
2246      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
2247      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#996600" stroke-linecap="round" stroke-dasharray="1,5" stroke-width="1.5"/>
2248    </Rule>
2249    <Rule>
2250      <ElseFilter/>
2251      &maxscale_zoom15;
2252      <LineSymbolizer stroke="grey" stroke-width="4" stroke-dasharray="4,2"/>
2253      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
2254      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.5" stroke="#996600" stroke-linecap="round" stroke-dasharray="3,4" stroke-width="1"/>
2255     </Rule>   
2256</Style>
2257<Style name="waterway-bridges">
2258    <Rule>
2259      &maxscale_zoom14;
2260      &minscale_zoom16;
2261      <LineSymbolizer stroke-linejoin="round" stroke="#000" stroke-width="7"/>
2262      <LineSymbolizer stroke-linejoin="round" stroke="#b5d0d0" stroke-width="6" stroke-linecap="round"/>
2263      <TextSymbolizer size="9" fill="#6699cc" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
2264    </Rule>
2265    <Rule>
2266      &maxscale_zoom17;
2267      &minscale_zoom18;
2268      <LineSymbolizer stroke-linejoin="round" stroke="#000" stroke-width="11"/>
2269      <LineSymbolizer stroke-linejoin="round" stroke="#b5d0d0" stroke-width="10" stroke-linecap="round"/>
2270      <TextSymbolizer size="9" fill="#6699cc" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
2271    </Rule>
2272</Style>
2273<Style name="bridges_casing">
2274     <Rule>
2275      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
2276      &maxscale_zoom12;
2277      &minscale_zoom12;
2278      <LineSymbolizer stroke="#506077" stroke-width="3"/>
2279    </Rule>
2280    <Rule>
2281      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
2282      &maxscale_zoom13;
2283      &minscale_zoom14;
2284      <LineSymbolizer stroke="black" stroke-width="6.5"/>
2285    </Rule>   
2286    <Rule>
2287      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
2288      &maxscale_zoom15;
2289      &minscale_zoom16;
2290      <LineSymbolizer stroke="black" stroke-width="9"/>
2291    </Rule>
2292    <Rule>
2293      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
2294      &maxscale_zoom17;
2295      &minscale_zoom18;
2296      <LineSymbolizer stroke="black" stroke-width="12"/>
2297    </Rule>
2298    <Rule>
2299      <Filter>[highway] = 'trunk' or [highway]='trunk_link'</Filter>
2300      &maxscale_zoom12;
2301      &minscale_zoom12;
2302      <LineSymbolizer stroke="#477147" stroke-width="4"/>
2303    </Rule>
2304    <Rule>
2305      <Filter>[highway] = 'trunk' or [highway]='trunk_link'</Filter>
2306      &maxscale_zoom13;
2307      &minscale_zoom14;
2308      <LineSymbolizer stroke="black" stroke-width="8"/>
2309    </Rule>
2310    <Rule>
2311      <Filter>[highway] = 'trunk' or [highway]='trunk_link'</Filter>
2312      &maxscale_zoom15;
2313      &minscale_zoom16;
2314      <LineSymbolizer stroke="black" stroke-width="11"/>
2315    </Rule>
2316    <Rule>
2317      <Filter>[highway] = 'trunk' or [highway]='trunk_link'</Filter>
2318      &maxscale_zoom17;
2319      &minscale_zoom18;
2320      <LineSymbolizer stroke="black" stroke-width="16"/>
2321    </Rule>
2322    <Rule>
2323      <Filter>[highway] = 'primary' or [highway]='primary_link'</Filter>
2324      &maxscale_zoom12;
2325      &minscale_zoom12;
2326      <LineSymbolizer stroke="#feba64" stroke-width="3"/>
2327    </Rule>
2328    <Rule>
2329      <Filter>[highway] = 'primary' or [highway]='primary_link'</Filter>
2330      &maxscale_zoom13;
2331      &minscale_zoom14;
2332      <LineSymbolizer stroke="black" stroke-width="8"/>
2333    </Rule>
2334    <Rule>
2335      <Filter>[highway] = 'primary' or [highway]='primary_link'</Filter>
2336      &maxscale_zoom15;
2337      &minscale_zoom16;
2338      <LineSymbolizer stroke="black" stroke-width="11"/>
2339    </Rule>
2340    <Rule>
2341      <Filter>[highway] = 'primary' or [highway]='primary_link'</Filter>
2342      &maxscale_zoom17;
2343      &minscale_zoom18;
2344      <LineSymbolizer stroke="black" stroke-width="16"/>
2345    </Rule>
2346    <Rule>
2347      <Filter>[highway] = 'secondary' or [highway]='secondary_link'</Filter>
2348      &maxscale_zoom13;
2349      &minscale_zoom14;
2350      <LineSymbolizer stroke="black" stroke-width="10"/>
2351    </Rule>
2352    <Rule>
2353      <Filter>[highway] = 'secondary' or [highway]='secondary_link'</Filter>
2354      &maxscale_zoom15;
2355      &minscale_zoom16;
2356      <LineSymbolizer stroke="black" stroke-width="12"/>
2357    </Rule>
2358    <Rule>
2359      <Filter>[highway] = 'secondary' or [highway]='secondary_link'</Filter>
2360      &maxscale_zoom17;
2361      &minscale_zoom18;
2362      <LineSymbolizer stroke="black" stroke-width="16"/>
2363    </Rule>
2364    <Rule>
2365      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
2366      &maxscale_zoom14;
2367      &minscale_zoom14;
2368      <LineSymbolizer stroke="black" stroke-width="7.5"/>
2369    </Rule>
2370    <Rule>
2371      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
2372      &maxscale_zoom15;
2373      &minscale_zoom16;
2374      <LineSymbolizer stroke="black" stroke-width="11"/>
2375    </Rule>
2376    <Rule>
2377      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
2378      &maxscale_zoom17;
2379      &minscale_zoom18;
2380      <LineSymbolizer stroke="black" stroke-width="16"/>
2381    </Rule>
2382    <Rule>
2383      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
2384      &maxscale_zoom14;
2385      &minscale_zoom14;
2386      <LineSymbolizer stroke="black" stroke-width="4.5"/>
2387    </Rule>
2388    <Rule>
2389      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
2390      &maxscale_zoom15;
2391      &minscale_zoom15;
2392      <LineSymbolizer stroke="black" stroke-width="9"/>
2393    </Rule>
2394    <Rule>
2395      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
2396      &maxscale_zoom16;
2397      &minscale_zoom16;
2398      <LineSymbolizer stroke="black" stroke-width="11"/>
2399    </Rule>
2400    <Rule>
2401      <Filter>[highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
2402      &maxscale_zoom17;
2403      &minscale_zoom18;
2404      <LineSymbolizer stroke="black" stroke-width="16"/>
2405    </Rule>
2406    <Rule>
2407      <Filter>[highway] = 'service'</Filter>
2408      &maxscale_zoom14;
2409      &minscale_zoom15;
2410      <LineSymbolizer stroke="black" stroke-width="3"/>
2411    </Rule>
2412    <Rule>
2413      <Filter>[highway] = 'service'</Filter>
2414      &maxscale_zoom16;
2415      &minscale_zoom18;
2416      <LineSymbolizer stroke="black" stroke-width="8"/>
2417    </Rule>
2418    <Rule>
2419      <Filter>[highway] = 'pedestrian'</Filter>
2420      &maxscale_zoom13;
2421      &minscale_zoom13;
2422      <LineSymbolizer stroke="black" stroke-width="2.2"/>
2423    </Rule>
2424    <Rule>
2425      <Filter>[highway] = 'pedestrian'</Filter>
2426      &maxscale_zoom14;
2427      &minscale_zoom14;
2428      <LineSymbolizer stroke="black" stroke-width="3.8"/>
2429    </Rule>
2430    <Rule>
2431      <Filter>[highway] = 'pedestrian'</Filter>
2432      &maxscale_zoom15;
2433      &minscale_zoom15;
2434      <LineSymbolizer stroke="black" stroke-width="7"/>
2435    </Rule>
2436    <Rule>
2437      <Filter>[highway] = 'pedestrian'</Filter>
2438      &maxscale_zoom16;
2439      <LineSymbolizer stroke="black" stroke-width="9.5"/>
2440    </Rule>
2441    <Rule>
2442      <Filter>[aeroway] = 'runway'</Filter>
2443      &maxscale_zoom14;
2444      <LineSymbolizer stroke="black" stroke-width="19"/>
2445    </Rule>
2446    <Rule>
2447      <Filter>[aeroway] = 'taxiway'</Filter>
2448      &maxscale_zoom14;
2449      &minscale_zoom14;
2450      <LineSymbolizer stroke="black" stroke-width="5"/>
2451    </Rule>
2452    <Rule>
2453      <Filter>[aeroway] = 'taxiway'</Filter>
2454      &maxscale_zoom15;
2455      <LineSymbolizer stroke="black" stroke-width="7"/>
2456    </Rule>
2457     <Rule>
2458      &maxscale_zoom14;
2459      &minscale_zoom18;
2460      <Filter>[railway]='subway'</Filter>
2461      <LineSymbolizer stroke="black" stroke-width="5.5"/>
2462     </Rule>
2463     <Rule>
2464      &maxscale_zoom14;
2465      &minscale_zoom18;
2466      <Filter>[railway]='light_rail' or [railway]='narrow_gauge'</Filter>
2467      <LineSymbolizer stroke="#555" stroke-width="5.5"/>
2468    </Rule>
2469    <Rule>
2470      <Filter>[highway] = 'unsurfaced'</Filter>
2471      &maxscale_zoom13;
2472      &minscale_zoom13;
2473      <LineSymbolizer stroke="black" stroke-width="5"/>
2474    </Rule>
2475    <Rule>
2476      <Filter>[highway] = 'unsurfaced'</Filter>
2477      &maxscale_zoom14;
2478      <LineSymbolizer stroke="black" stroke-width="6.5"/>
2479    </Rule>
2480    <Rule>
2481      <Filter>[highway] = 'bridleway' or ([highway] = 'path' and [horse] = 'designated')</Filter>
2482      &maxscale_zoom14;
2483      <LineSymbolizer stroke="black" stroke-width="5.5"/>
2484    </Rule>
2485    <Rule>
2486      <Filter>[highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')</Filter>
2487      &maxscale_zoom14;
2488      <LineSymbolizer stroke="black" stroke-width="6"/>
2489    </Rule>
2490    <Rule>
2491      <Filter>[highway] = 'path' and not ([bicycle] = 'designated' or [foot] = 'designated' or [horse] = 'designated')</Filter>
2492      &maxscale_zoom14; 
2493      <LineSymbolizer stroke="black" stroke-width="4"/>
2494    </Rule>         
2495    <Rule>
2496      <Filter>[highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')</Filter>
2497      &maxscale_zoom14;
2498      <LineSymbolizer stroke="black" stroke-width="5.5"/>
2499    </Rule>
2500    <Rule>
2501      <Filter>[highway] = 'byway'</Filter>
2502      &maxscale_zoom14;
2503      <LineSymbolizer stroke="black" stroke-width="5.5"/>
2504    </Rule>
2505    <Rule>
2506      &maxscale_zoom13;
2507      &minscale_zoom18;
2508      <Filter>[railway] = 'rail'</Filter>
2509      <LineSymbolizer stroke-linejoin="round" stroke="#454545" stroke-width="6.5"/>
2510    </Rule>
2511    <Rule>
2512      &maxscale_zoom13;
2513      &minscale_zoom18;
2514      <Filter>[railway] = 'INT-spur-siding-yard'</Filter>
2515      <LineSymbolizer stroke-linejoin="round" stroke="black" stroke-width="5.7"/>
2516    </Rule>
2517    <!-- disable abandoned railways
2518    <Rule>
2519      &maxscale_zoom13;
2520      &minscale_zoom18;
2521      <Filter>([railway] = 'disused' or [railway] = 'abandoned' or [railway]='construction') and not [highway] != ''</Filter>
2522      <LineSymbolizer stroke="black" stroke-width="6"/>
2523    </Rule>
2524    -->
2525    <Rule>
2526      <Filter>[highway] = 'track' and [tracktype] = 'grade1'</Filter>
2527      &maxscale_zoom14;
2528      <LineSymbolizer stroke="black" stroke-width="4.5"/>
2529    </Rule>
2530    <Rule>
2531      <Filter>[highway] = 'track' and [tracktype] = 'grade2'</Filter>
2532      &maxscale_zoom14;
2533      <LineSymbolizer stroke="black" stroke-width="4"/>
2534    </Rule>
2535    <Rule>
2536      <Filter>[highway] = 'track' and [tracktype] = 'grade3'</Filter>
2537      &maxscale_zoom14;
2538      <LineSymbolizer stroke="black" stroke-width="4"/>
2539    </Rule>
2540    <Rule>
2541      <Filter>[highway] = 'track' and [tracktype] = 'grade4'</Filter>
2542      &maxscale_zoom14;
2543      <LineSymbolizer stroke="black" stroke-width="4"/>
2544    </Rule>
2545    <Rule>
2546      <Filter>[highway] = 'track' and [tracktype] = 'grade5'</Filter>
2547      &maxscale_zoom14;
2548      <LineSymbolizer stroke="black" stroke-width="4"/>
2549    </Rule>
2550    <Rule>
2551      <Filter>[highway] = 'track' and not [tracktype] != ''</Filter>
2552      &maxscale_zoom14;
2553      <LineSymbolizer stroke="black" stroke-width="4"/>
2554     </Rule>   
2555</Style>
2556<Style name="bridges_casing2">
2557    <Rule>
2558      &maxscale_zoom14;
2559      &minscale_zoom18;
2560      <Filter>[railway]='subway'</Filter>
2561      <LineSymbolizer stroke="white" stroke-width="4"/>
2562    </Rule>
2563    <Rule>
2564      &maxscale_zoom14;
2565      &minscale_zoom18;
2566      <Filter>[railway]='light_rail' or [railway]='narrow_gauge'</Filter>
2567      <LineSymbolizer stroke="white" stroke-width="4"/>
2568    </Rule>
2569    <Rule>
2570      <Filter>[highway] = 'unsurfaced'</Filter>
2571      &maxscale_zoom13;
2572      &minscale_zoom13;
2573      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4" stroke-linecap="round"/>
2574    </Rule>
2575    <Rule>
2576      <Filter>[highway] = 'unsurfaced'</Filter>
2577      &maxscale_zoom14;
2578      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="5" stroke-linecap="round"/>
2579    </Rule>
2580    <Rule>
2581      <Filter>[highway] = 'bridleway' or ([highway] = 'path' and [horse] = 'designated')</Filter>
2582      &maxscale_zoom14;
2583      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4" stroke-linecap="round"/>
2584    </Rule>
2585    <Rule>
2586      <Filter>[highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')</Filter>
2587      &maxscale_zoom14;
2588      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4.5" stroke-linecap="round"/>
2589    </Rule>
2590    <Rule>
2591      <Filter>[highway] = 'path' and not ([bicycle] = 'designated' or [foot] = 'designated' or [horse] = 'designated')</Filter>
2592      &maxscale_zoom14; 
2593      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2.5" stroke-linecap="round"/>
2594    </Rule>         
2595    <Rule>
2596      <Filter>[highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')</Filter>
2597      &maxscale_zoom14;
2598      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4" stroke-linecap="round"/>
2599    </Rule>
2600    <Rule>
2601      <Filter>[highway] = 'byway'</Filter>
2602      &maxscale_zoom14;
2603      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4" stroke-linecap="round"/>
2604    </Rule>
2605    <Rule>
2606      &maxscale_zoom13;
2607      &minscale_zoom18;
2608      <Filter>[railway] = 'rail'</Filter>
2609      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="5"/>
2610    </Rule>
2611    <Rule>
2612      &maxscale_zoom13;
2613      &minscale_zoom18;
2614      <Filter>[railway] = 'INT-spur-siding-yard'</Filter>
2615      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4"/>
2616    </Rule>
2617    <!-- disable abandoned railways
2618    <Rule>
2619      &maxscale_zoom13;
2620      &minscale_zoom18;
2621      <Filter>([railway] = 'disused' or [railway] = 'abandoned' or [railway]='construction') and not [highway] != ''</Filter>
2622      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="4.5" stroke-linecap="round"/>
2623    </Rule>
2624    -->
2625    <Rule>
2626      <Filter>[highway] = 'track' and [tracktype] = 'grade1'</Filter>
2627      &maxscale_zoom14;
2628      <LineSymbolizer stroke="white" stroke-width="3.5"/>
2629    </Rule>
2630    <Rule>
2631      <Filter>[highway] = 'track' and [tracktype] = 'grade2'</Filter>
2632      &maxscale_zoom14;
2633      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3" stroke-linecap="round"/>
2634    </Rule>
2635    <Rule>
2636     <Filter>[highway] = 'track' and [tracktype] = 'grade3'</Filter>
2637      &maxscale_zoom14;
2638      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3.5" stroke-linecap="round"/>
2639    </Rule>
2640    <Rule>
2641      <Filter>[highway] = 'track' and [tracktype] = 'grade4'</Filter>
2642      &maxscale_zoom14;
2643      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3" stroke-linecap="round"/>
2644    </Rule>
2645    <Rule>
2646      <Filter>[highway] = 'track' and [tracktype] = 'grade5'</Filter>
2647      &maxscale_zoom14;
2648      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3" stroke-linecap="round"/>
2649    </Rule>
2650    <Rule>
2651      <Filter>[highway] = 'track' and not [tracktype] != ''</Filter>
2652      &maxscale_zoom14;
2653      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3" stroke-linecap="round"/>
2654     </Rule>   
2655</Style>
2656<Style name="bridges_fill">
2657     <Rule>
2658      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
2659      &maxscale_zoom12;
2660      &minscale_zoom12;
2661      <LineSymbolizer stroke-linejoin="round" stroke="#ffc272" stroke-width="2" stroke-linecap="round"/>
2662    </Rule>   
2663    <Rule>
2664      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
2665      &maxscale_zoom13;
2666      &minscale_zoom14;
2667      <LineSymbolizer stroke-linejoin="round" stroke="#ffc272" stroke-width="5.5" stroke-linecap="round"/>
2668    </Rule>   
2669    <Rule>
2670      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
2671      &maxscale_zoom15;
2672      &minscale_zoom16;
2673      <LineSymbolizer stroke-linejoin="round" stroke="#ffc272" stroke-width="7.5" stroke-linecap="round"/>
2674    </Rule>
2675   <Rule>
2676      <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
2677      &maxscale_zoom17;
2678      &minscale_zoom18;
2679      <LineSymbolizer stroke-linejoin="round" stroke="#ffc272" stroke-width="10" stroke-linecap="round"/>
2680    </Rule>
2681    <Rule>
2682      <Filter>[highway] = 'trunk' or [highway]='trunk_link'</Filter>
2683      &maxscale_zoom12;
2684      &minscale_zoom12;
2685      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="3" stroke-linecap="round"/>
2686    </Rule>
2687    <Rule>
2688      <Filter>[highway] = 'trunk' or [highway]='trunk_link'</Filter>
2689      &maxscale_zoom13;
2690      &minscale_zoom14;
2691      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="7" stroke-linecap="round"/>
2692    </Rule>
2693    <Rule>
2694      <Filter>[highway] = 'trunk' or [highway]='trunk_link'</Filter>
2695      &maxscale_zoom15;
2696      &minscale_zoom16;
2697      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="9.5" stroke-linecap="round"/>
2698    </Rule>
2699    <Rule>
2700      <Filter>[highway] = 'trunk' or [highway]='trunk_link'</Filter>
2701      &maxscale_zoom17;
2702      &minscale_zoom18;
2703      <LineSymbolizer stroke-linejoin="round" stroke="#ffb470" stroke-width="14.5" stroke-linecap="round"/>
2704    </Rule>
2705    <Rule>
2706      <Filter>[highway] = 'primary' or [highway]='primary_link'</Filter>
2707      &maxscale_zoom12;
2708      &minscale_zoom12;
2709      <LineSymbolizer stroke-linejoin="round" stroke="#feba64" stroke-width="3" stroke-linecap="round"/>
2710    </Rule>
2711    <Rule>
2712      <Filter>[highway] = 'primary' or [highway]='primary_link'</Filter>
2713      &maxscale_zoom13;
2714      &minscale_zoom14;
2715      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="7" stroke-linecap="round"/>
2716    </Rule>   
2717    <Rule>
2718      <Filter>[highway] = 'primary' or [highway]='primary_link'</Filter>
2719      &maxscale_zoom15;
2720      &minscale_zoom16;
2721      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="9.5" stroke-linecap="round"/>
2722    </Rule>
2723    <Rule>
2724      <Filter>[highway] = 'primary' or [highway]='primary_link'</Filter>
2725      &maxscale_zoom17;
2726      &minscale_zoom18;
2727      <LineSymbolizer stroke-linejoin="round" stroke="#fbaa6e" stroke-width="14.5" stroke-linecap="round"/>
2728    </Rule>
2729    <Rule>
2730      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
2731      &maxscale_zoom13;
2732      &minscale_zoom14;
2733      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="9" stroke-linecap="round"/>
2734    </Rule>
2735    <Rule>
2736      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
2737      &maxscale_zoom15;
2738      &minscale_zoom16;
2739      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="10.5" stroke-linecap="round"/>
2740    </Rule> 
2741    <Rule>
2742      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
2743      &maxscale_zoom17;
2744      &minscale_zoom18;
2745      <LineSymbolizer stroke-linejoin="round" stroke="#f7e96a" stroke-width="14.5" stroke-linecap="round"/>
2746    </Rule>
2747    <Rule>
2748      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
2749      &maxscale_zoom14;
2750      &minscale_zoom14;
2751      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="6" stroke-linecap="round"/>
2752    </Rule>
2753    <Rule>
2754      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
2755      &maxscale_zoom15;
2756      &minscale_zoom16;
2757      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="9.5" stroke-linecap="round"/>
2758    </Rule>
2759    <Rule>
2760      <Filter>[highway] = 'tertiary' or [highway]='tertiary_link'</Filter>
2761      &maxscale_zoom17;
2762      &minscale_zoom18;
2763      <LineSymbolizer stroke-linejoin="round" stroke="#ffffb3" stroke-width="14" stroke-linecap="round"/>
2764    </Rule>
2765    <Rule>
2766      <Filter>[highway] = 'road'</Filter>
2767      &maxscale_zoom14;
2768      &minscale_zoom14;
2769      <LineSymbolizer stroke-linejoin="round" stroke="#ddd" stroke-width="3.5" stroke-linecap="round"/>
2770    </Rule>
2771    <Rule>
2772      <Filter>[highway] = 'road'</Filter>
2773      &maxscale_zoom15;
2774      &minscale_zoom16;
2775      <LineSymbolizer stroke-linejoin="round" stroke="#ddd" stroke-width="9.5" stroke-linecap="round"/>
2776    </Rule>
2777    <Rule>
2778      <Filter>[highway] = 'road'</Filter>
2779      &maxscale_zoom17;
2780      &minscale_zoom18;
2781      <LineSymbolizer stroke-linejoin="round" stroke="#ddd" stroke-width="14" stroke-linecap="round"/>
2782    </Rule>
2783    <Rule>
2784      <Filter>[highway] = 'residential' or [highway] = 'unclassified'</Filter>
2785      &maxscale_zoom14;
2786      &minscale_zoom14;
2787      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="3.5" stroke-linecap="round"/>
2788    </Rule>
2789   <Rule>
2790      <Filter>[highway] = 'residential' or [highway] = 'unclassified'</Filter>
2791      &maxscale_zoom15;
2792      &minscale_zoom15;
2793      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="7.5" stroke-linecap="round"/>
2794    </Rule>
2795    <Rule>
2796      <Filter>[highway] = 'residential' or [highway] = 'unclassified'</Filter>
2797      &maxscale_zoom16;
2798      &minscale_zoom16;
2799      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="9.5" stroke-linecap="round"/>
2800    </Rule>
2801    <Rule>
2802      <Filter>[highway] = 'residential' or [highway] = 'unclassified'</Filter>
2803      &maxscale_zoom17;
2804      &minscale_zoom18;
2805      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="14" stroke-linecap="round"/>
2806    </Rule>
2807    <Rule>
2808      <Filter>[highway] = 'service'</Filter>
2809      &maxscale_zoom14;
2810      &minscale_zoom15;
2811      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="2" stroke-linecap="round"/>
2812    </Rule>
2813    <Rule>
2814      <Filter>[highway] = 'service'</Filter>
2815      &maxscale_zoom16;
2816      &minscale_zoom18;
2817      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="6" stroke-linecap="round"/>
2818    </Rule>
2819    <Rule>
2820      <Filter>[highway] = 'pedestrian'</Filter>
2821      &maxscale_zoom13;
2822      &minscale_zoom13;
2823      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="1.5" stroke-linecap="round"/>
2824    </Rule>
2825    <Rule>
2826      <Filter>[highway] = 'pedestrian'</Filter>
2827      &maxscale_zoom14;
2828      &minscale_zoom14;
2829      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="3" stroke-linecap="round"/>
2830    </Rule>
2831    <Rule>
2832      <Filter>[highway] = 'pedestrian'</Filter>
2833      &maxscale_zoom15;
2834      &minscale_zoom15;
2835      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="5.5" stroke-linecap="round"/>
2836    </Rule>
2837    <Rule>
2838      <Filter>[highway] = 'pedestrian'</Filter>
2839      &maxscale_zoom16;
2840      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="8" stroke-linecap="round"/>
2841    </Rule>
2842    <Rule>
2843      <Filter>[aeroway] = 'runway'</Filter>
2844      &maxscale_zoom14;
2845      <LineSymbolizer stroke="#bbc" stroke-width="18"/>
2846    </Rule>
2847    <Rule>
2848      <Filter>[aeroway] = 'taxiway'</Filter>
2849      &maxscale_zoom14;
2850      &minscale_zoom14;
2851      <LineSymbolizer stroke="#bbc" stroke-width="4"/>
2852    </Rule>
2853    <Rule>
2854      <Filter>[aeroway] = 'taxiway'</Filter>
2855      &maxscale_zoom15;
2856      <LineSymbolizer stroke="#bbc" stroke-width="6"/>
2857    </Rule>
2858    <Rule>
2859      &maxscale_zoom14;
2860      &minscale_zoom18;
2861      <Filter>[railway]='subway'</Filter>
2862      <LineSymbolizer stroke="#999" stroke-width="2"/>
2863    </Rule>
2864    <Rule>
2865      &maxscale_zoom14;
2866      &minscale_zoom18;
2867      <Filter>[railway]='light_rail' or [railway]='narrow_gauge'</Filter>
2868      <LineSymbolizer stroke="#666" stroke-width="2"/>
2869    </Rule>
2870    <Rule>
2871      <Filter>[highway] = 'unsurfaced'</Filter>
2872      &maxscale_zoom13;
2873      &minscale_zoom13;
2874      <LineSymbolizer stroke-linejoin="round" stroke="#debd9c" stroke-width="3" stroke-dasharray="2,4" stroke-linecap="round"/>
2875    </Rule>
2876    <Rule>
2877      <Filter>[highway] = 'unsurfaced'</Filter>
2878      &maxscale_zoom14;
2879      <LineSymbolizer stroke-linejoin="round" stroke="#debd9c" stroke-width="4" stroke-dasharray="4,6" stroke-linecap="round"/>
2880    </Rule>
2881    <Rule>
2882      <Filter>[highway] = 'bridleway' or ([highway] = 'path' and [horse] = 'designated')</Filter>
2883      &maxscale_zoom14;
2884      <LineSymbolizer stroke="green" stroke-width="1.5" stroke-dasharray="4,2"/>
2885    </Rule>
2886    <Rule>
2887      <Filter>[highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')</Filter>
2888      &maxscale_zoom14;
2889      <LineSymbolizer stroke-linejoin="round" stroke="#c8c8c8" stroke-width="1.5" stroke-linecap="round"/>
2890    </Rule>
2891    <Rule>
2892      <Filter>[highway] = 'path' and not ([bicycle] = 'designated' or [foot] = 'designated' or [horse] = 'designated')</Filter>
2893      &maxscale_zoom14; 
2894      <LineSymbolizer stroke-linejoin="round" stroke="black" stroke-width="0.5" stroke-dasharray="6,3" stroke-linecap="round"/>
2895    </Rule>         
2896    <Rule>
2897      <Filter>[highway] = 'cycleway' or ([highway] = 'path' and [bicycle] = 'designated')</Filter>
2898      &maxscale_zoom14;
2899      <LineSymbolizer stroke="#6397de" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>
2900    </Rule>
2901    <Rule>
2902      <Filter>[highway] = 'byway'</Filter>
2903      &maxscale_zoom14;
2904      <LineSymbolizer stroke-linejoin="round" stroke="#ffcc00" stroke-width="1.5" stroke-dasharray="3,4" stroke-linecap="round"/>
2905    </Rule>
2906    <Rule>
2907      &maxscale_zoom13;
2908      &minscale_zoom13;
2909      <Filter>[railway] = 'rail'</Filter>
2910      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="3"/>
2911      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1" stroke-dasharray="8,12"/>
2912    </Rule>
2913    <Rule>
2914      &maxscale_zoom14;
2915      &minscale_zoom18;
2916      <Filter>[railway] = 'rail'</Filter>
2917      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="3"/>
2918      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1" stroke-dasharray="0,11,8,1"/>
2919    </Rule>
2920    <Rule>
2921      &maxscale_zoom13;
2922      &minscale_zoom18;
2923      <Filter>[railway] = 'INT-spur-siding-yard'</Filter>
2924      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="2"/>
2925      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="0.8" stroke-dasharray="0,8,11,1"/>
2926    </Rule>
2927    <!-- disable abandoned railways
2928    <Rule>
2929      &maxscale_zoom13;
2930      &minscale_zoom18;
2931      <Filter>([railway] = 'disused' or [railway] = 'abandoned' or [railway]='construction') and not [highway] != ''</Filter>
2932      <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="2" stroke-dasharray="2,4"/>
2933    </Rule>
2934    -->
2935    <Rule>
2936      <Filter>[highway] = 'track' and [tracktype] = 'grade1'</Filter>
2937      &maxscale_zoom14;
2938      <LineSymbolizer stroke="#b37700" stroke-width="2" stroke-opacity="0.7"/>
2939    </Rule>
2940    <Rule>
2941      <Filter>[highway] = 'track' and [tracktype] = 'grade2'</Filter>
2942      &maxscale_zoom14;
2943      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.8" stroke="#a87000" stroke-linecap="round" stroke-dasharray="3,4" stroke-width="1.5"/>
2944    </Rule>
2945    <Rule>
2946      <Filter>[highway] = 'track' and [tracktype] = 'grade3'</Filter>
2947      &maxscale_zoom14;
2948      <LineSymbolizer stroke-linejoin="round" stroke="#996600" stroke-width="2" stroke-linecap="round" stroke-opacity="0.7"/>
2949    </Rule>
2950    <Rule>
2951      <Filter>[highway] = 'track' and [tracktype] = 'grade4'</Filter>
2952      &maxscale_zoom14;
2953      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.8" stroke="#996600" stroke-linecap="round" stroke-dasharray="4,7,1,5" stroke-width="2"/>
2954    </Rule>
2955    <Rule>
2956      <Filter>[highway] = 'track' and [tracktype] = 'grade5'</Filter>
2957      &maxscale_zoom14;
2958      <LineSymbolizer stroke-linejoin="round" stroke-opacity="0.8" stroke="#996600" stroke-linecap="round" stroke-dasharray="1,5" stroke-width="2"/>
2959    </Rule>
2960    <Rule>
2961      <Filter>[highway] = 'track' and not [tracktype] != ''</Filter>
2962      &maxscale_zoom14;
2963      <LineSymbolizer stroke-linejoin="round" stroke="#996600" stroke-width="1.5" stroke-dasharray="3,4" stroke-linecap="round"/>
2964     </Rule>   
2965</Style>
2966<Style name="roads-casing">                                                     
2967     <Rule>
2968      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
2969    &maxscale_zoom8;
2970    &minscale_zoom8;
2971      <LineSymbolizer stroke="#dc1400" stroke-width="2.2"/>
2972     </Rule>
2973     <Rule>
2974      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
2975    &maxscale_zoom9;
2976    &minscale_zoom9;
2977      <LineSymbolizer stroke="#dc1400" stroke-width="3.5"/>
2978     </Rule>
2979     <Rule>
2980      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
2981    &maxscale_zoom10;
2982    &minscale_zoom10;
2983      <LineSymbolizer stroke="#dc1400" stroke-width="4.2"/>
2984     </Rule>
2985     <Rule>
2986      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
2987    &maxscale_zoom11;
2988    &minscale_zoom11;
2989      <LineSymbolizer stroke="#dc1400" stroke-width="3.7"/>
2990     </Rule>
2991     <Rule>
2992      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
2993      &maxscale_zoom11;
2994      &minscale_zoom11;
2995      <LineSymbolizer stroke="#477147" stroke-width="2.5"/>
2996         </Rule>
2997     <Rule>
2998      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
2999      &maxscale_zoom11;
3000      &minscale_zoom11;
3001      <LineSymbolizer stroke="#8d4346" stroke-width="2.5"/>
3002         </Rule>
3003    <Rule>
3004      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
3005      &maxscale_zoom10;
3006      &minscale_zoom10;
3007      <LineSymbolizer stroke="#ffd71e" stroke-width="2.0"/>
3008    </Rule>
3009    <Rule>
3010      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
3011      &maxscale_zoom11;
3012      &minscale_zoom11;
3013      <LineSymbolizer stroke="#f3a034" stroke-width="2.5"/>
3014    </Rule>
3015    <Rule>
3016      &maxscale_zoom10;
3017      &minscale_zoom12;
3018      <Filter>[railway] = 'rail' and not [tunnel]='yes'</Filter>
3019       <LineSymbolizer stroke="#606060" stroke-width="1.7"/>
3020    </Rule>
3021</Style>
3022<Style name="roads">
3023    <Rule>
3024      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
3025      &maxscale_zoom5;
3026      &minscale_zoom6;
3027      <LineSymbolizer stroke="#dc1400" stroke-width="0.5" stroke-opacity="0.5"/>
3028    </Rule>
3029    <Rule>
3030      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
3031      &maxscale_zoom7;
3032      &minscale_zoom7;
3033      <LineSymbolizer stroke="#dc1400" stroke-width="1"/>
3034    </Rule>
3035    <Rule>
3036      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
3037      &maxscale_zoom8;
3038      &minscale_zoom8;
3039      <LineSymbolizer stroke="#ffc272" stroke-width="0.4"/>
3040    </Rule>   
3041    <Rule>
3042      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
3043      &maxscale_zoom9;
3044      &minscale_zoom9;
3045      <LineSymbolizer stroke="#ffc272" stroke-width="0.8"/>
3046    </Rule>
3047    <Rule>
3048      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
3049      &maxscale_zoom10;
3050      &minscale_zoom10;
3051      <LineSymbolizer stroke="#ffc272" stroke-width="1.5"/>
3052    </Rule>
3053    <Rule>
3054      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
3055      &maxscale_zoom11;
3056      &minscale_zoom11;
3057      <LineSymbolizer stroke="#ffc272" stroke-width="1.6"/>
3058    </Rule>
3059    <!-- TRUNK -->
3060    <Rule>
3061      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
3062      &maxscale_zoom6;
3063      &minscale_zoom6;
3064      <LineSymbolizer stroke="#ff8421" stroke-width="0.4"/>
3065    </Rule>
3066   <Rule>
3067      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
3068      &maxscale_zoom7;
3069      &minscale_zoom7;
3070      <LineSymbolizer stroke="#fb8e3e" stroke-width="1.2"/>
3071    </Rule>
3072   <Rule>
3073      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
3074      &maxscale_zoom8;
3075      &minscale_zoom8;
3076      <LineSymbolizer stroke="#fb8e3e" stroke-width="1.5"/>
3077    </Rule>   
3078    <Rule>
3079      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
3080      &maxscale_zoom9;
3081      &minscale_zoom9;
3082      <LineSymbolizer stroke="#f99c57" stroke-width="2"/>
3083    </Rule>
3084    <Rule>
3085      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
3086      &maxscale_zoom10;
3087      &minscale_zoom10;
3088      <LineSymbolizer stroke="#f99c57" stroke-width="2.2"/>
3089    </Rule>
3090    <Rule>
3091      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
3092      &maxscale_zoom11;
3093      &minscale_zoom11;
3094      <LineSymbolizer stroke="#fb954a" stroke-width="2.5"/>
3095    </Rule>
3096   <!-- PRIMARY-->
3097   <Rule>
3098      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
3099      &maxscale_zoom6;
3100      &minscale_zoom6;
3101      <LineSymbolizer stroke="#fbc196" stroke-width="0.3"/>
3102    </Rule>
3103   <Rule>
3104      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
3105      &maxscale_zoom7;
3106      &minscale_zoom7;
3107      <LineSymbolizer stroke="#fb954a" stroke-width="0.7"/>
3108    </Rule>
3109   <Rule>
3110      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
3111      &maxscale_zoom8;
3112      &minscale_zoom8;
3113      <LineSymbolizer stroke="#fb954a" stroke-width="0.9"/>
3114    </Rule>   
3115    <Rule>
3116      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
3117      &maxscale_zoom9;
3118      &minscale_zoom9;
3119      <LineSymbolizer stroke="#fb9500" stroke-width="1.4"/>
3120    </Rule>
3121    <Rule>
3122      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
3123      &maxscale_zoom10;
3124      &minscale_zoom10;
3125      <LineSymbolizer stroke="#fb953b" stroke-width="2.2"/>
3126    </Rule>
3127    <Rule>
3128      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
3129      &maxscale_zoom11;
3130      &minscale_zoom11;
3131      <LineSymbolizer stroke="#fba84a" stroke-width="2.5"/>
3132    </Rule>
3133    <!-- SECONDARY -->
3134    <Rule>
3135      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
3136      &maxscale_zoom9;
3137      &minscale_zoom9;
3138      <LineSymbolizer stroke="#ffe269" stroke-width="1.1"/>
3139    </Rule>
3140    <Rule>
3141      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
3142      &maxscale_zoom10;
3143      &minscale_zoom10;
3144      <LineSymbolizer stroke="#ffe269" stroke-width="1.4"/>
3145    </Rule>
3146    <Rule>
3147      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
3148      &maxscale_zoom11;
3149      &minscale_zoom11;
3150      <LineSymbolizer stroke="#f6e856" stroke-width="2.3"/>
3151    </Rule>
3152    <!-- RAIL -->
3153        <!-- disable rail/tram in z less than 10>
3154    <Rule>
3155      &maxscale_zoom6;
3156      &minscale_zoom8;
3157      <Filter>[railway] = 'rail'</Filter>
3158      <LineSymbolizer stroke="#aaa" stroke-width="0.6"/>
3159    </Rule>
3160    <Rule>
3161      &maxscale_zoom9;
3162      &minscale_zoom9;
3163      <Filter>[railway] = 'rail' and not [tunnel]='yes'</Filter>
3164      <LineSymbolizer stroke="#aaa" stroke-width="1"/>
3165    </Rule>
3166    <Rule>
3167      &maxscale_zoom9;
3168      &minscale_zoom9;
3169      <Filter>[railway] = 'rail' and [tunnel]='yes'</Filter>
3170      <LineSymbolizer stroke="#aaa" stroke-width="1" stroke-dasharray="5,2"/>
3171    </Rule>
3172    <Rule>
3173      &maxscale_zoom8;
3174      &minscale_zoom9;
3175      <Filter>[railway] = 'tram' or [railway] = 'light_rail' or [railway] = 'narrow_gauge' or [railway]='funicular'</Filter>
3176      <LineSymbolizer stroke="#ccc" stroke-width="1"/>
3177    </Rule>
3178        -->
3179    <Rule>
3180      &maxscale_zoom10;
3181      &minscale_zoom11;
3182      <Filter>[railway] = 'rail' and not [tunnel]='yes'</Filter>
3183          <LineSymbolizer stroke="#adadad" stroke-width="1.5"/>
3184    </Rule>
3185    <Rule>
3186      &maxscale_zoom12;
3187      &minscale_zoom12;
3188      <Filter>[railway] = 'rail' and not [tunnel]='yes'</Filter>
3189      <LineSymbolizer stroke="#aaa" stroke-width="2"/>
3190    </Rule>
3191    <Rule>
3192      &maxscale_zoom10;
3193      &minscale_zoom11;
3194      <Filter>[railway] = 'rail' and [tunnel]='yes'</Filter>
3195      <LineSymbolizer stroke="#a4a4a4" stroke-width="2" stroke-dasharray="5,2"/>
3196    </Rule>
3197    <Rule>
3198      &maxscale_zoom12;
3199      &minscale_zoom12;
3200      <Filter>[railway] = 'rail' and [tunnel]='yes'</Filter>
3201      <LineSymbolizer stroke="#aaa" stroke-width="2" stroke-dasharray="5,2"/>
3202    </Rule>
3203    <Rule>
3204      &maxscale_zoom10;
3205      &minscale_zoom12;
3206      <Filter>[railway] = 'tram' or [railway] = 'light_rail' or [railway] = 'narrow_gauge' or [railway]='funicular'</Filter>
3207      <LineSymbolizer stroke="#aaa" stroke-width="1"/>
3208    </Rule>
3209    <Rule>
3210      &maxscale_zoom12;
3211      &minscale_zoom12;
3212      <Filter>[railway] = 'preserved'</Filter>
3213      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="1.5"/>
3214    </Rule>
3215    <Rule>
3216      &maxscale_zoom13;
3217      &minscale_zoom18;
3218      <Filter>[railway] = 'preserved'</Filter>
3219      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="3"/>
3220      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1" stroke-dasharray="0,1,8,1"/>
3221    </Rule>
3222    <Rule>
3223      &maxscale_zoom12;
3224      &minscale_zoom12;
3225      <Filter>[railway] = 'INT-preserved-ssy'</Filter>
3226      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="1"/>
3227    </Rule>
3228    <Rule>
3229      &maxscale_zoom13;
3230      &minscale_zoom18;
3231      <Filter>[railway] = 'INT-preserved-ssy'</Filter>
3232      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="2"/>
3233      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="0.8" stroke-dasharray="0,1,8,1"/>
3234    </Rule>
3235    <Rule>
3236      &maxscale_zoom14;
3237      &minscale_zoom18;
3238      <Filter>[railway]='monorail'</Filter>
3239      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-opacity="0.4"/>
3240      <LineSymbolizer stroke-linejoin="round" stroke="#777" stroke-width="3.0" stroke-dasharray="2,3" stroke-linecap="round"/>
3241    </Rule>
3242</Style>
3243<Style name="trams">
3244    <Rule>
3245      <Filter>[railway] = 'tram'</Filter>
3246      &maxscale_zoom14;
3247      &minscale_zoom14;
3248      <LineSymbolizer stroke="#858585" stroke-width="1"/>
3249    </Rule>
3250    <Rule>
3251      <Filter>[railway] = 'tram' and not [bridge]='yes'</Filter>
3252      &maxscale_zoom15;
3253      &minscale_zoom18;
3254      <LineSymbolizer stroke="#858585" stroke-width="2"/>
3255    </Rule>
3256    <Rule>
3257      <Filter>[railway] = 'tram' and [bridge]='yes'</Filter>
3258      &maxscale_zoom15;
3259      &minscale_zoom18;
3260      <LineSymbolizer stroke="black" stroke-width="5"/>
3261      <LineSymbolizer stroke="white" stroke-width="4"/>
3262      <LineSymbolizer stroke="#858585" stroke-width="2"/>
3263    </Rule>
3264</Style>
3265<Style name="guideways">
3266<Rule>
3267      &maxscale_zoom13;
3268      &minscale_zoom13;
3269      <LineSymbolizer stroke-linejoin="round" stroke="#6666ff" stroke-width="3"/>
3270      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1" stroke-dasharray="8,12"/>
3271    </Rule>
3272    <Rule>
3273      &maxscale_zoom14;
3274      &minscale_zoom18;
3275      <LineSymbolizer stroke-linejoin="round" stroke="#6666ff" stroke-width="3"/>
3276      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1" stroke-dasharray="0,11,8,1"/>
3277    </Rule>
3278</Style>
3279<Style name="roads-text-ref-low-zoom">
3280    <Rule>
3281      <Filter>[highway] = 'motorway' and [length] le 8</Filter>
3282      &maxscale_zoom10;
3283      &minscale_zoom12;
3284      <ShieldSymbolizer size="10" fill="#fff" placement="line" file="&symbols;/Bundesautobahn[length].png" spacing="750" minimum-distance="30" fontset-name="bold-fonts">[ref]</ShieldSymbolizer>
3285    </Rule>
3286    <Rule>
3287      <Filter>[highway] = 'trunk'</Filter>
3288      &maxscale_zoom11;
3289      &minscale_zoom12;
3290      <ShieldSymbolizer size="10" fill="#000" placement="line" file="&symbols;/B[length].png" spacing="750" minimum-distance="30" fontset-name="book-fonts">[ref]</ShieldSymbolizer>
3291    </Rule>
3292    <Rule>
3293      <Filter>[highway] = 'primary'</Filter>
3294      &maxscale_zoom11;
3295      &minscale_zoom12;
3296      <ShieldSymbolizer size="10" fill="#000" placement="line" file="&symbols;/B[length].png" spacing="750" minimum-distance="30" fontset-name="book-fonts">[ref]</ShieldSymbolizer>
3297    </Rule>
3298    <Rule>
3299      <Filter>[highway] = 'secondary'</Filter>
3300      &maxscale_zoom12;
3301      &minscale_zoom12;
3302      <ShieldSymbolizer size="10" fill="#000" placement="line" file="&symbols;/L[length].png" spacing="750" minimum-distance="40" fontset-name="book-fonts">[ref]</ShieldSymbolizer>
3303    </Rule>
3304</Style>
3305<Style name="roads-text-ref">
3306    <Rule>
3307      <Filter>[highway] = 'motorway' and [length] le 8</Filter>
3308      &maxscale_zoom13;
3309      &minscale_zoom18;
3310      <ShieldSymbolizer size="10" fill="#fff" placement="line" file="&symbols;/Bundesautobahn[length].png" spacing="750" minimum-distance="30" fontset-name="bold-fonts">[ref]</ShieldSymbolizer>
3311    </Rule>
3312    <Rule>
3313      <Filter>[highway] = 'trunk'</Filter>
3314      &maxscale_zoom13;
3315      &minscale_zoom18;
3316      <ShieldSymbolizer size="10" fill="#000" placement="line" file="&symbols;/B[length].png" spacing="750" minimum-distance="30" fontset-name="book-fonts">[ref]</ShieldSymbolizer>
3317    </Rule>
3318    <Rule>
3319      <Filter>[highway] = 'primary'</Filter>
3320      &maxscale_zoom13;
3321      &minscale_zoom18;
3322      <ShieldSymbolizer size="10" fill="#000" placement="line" file="&symbols;/B[length].png" spacing="750" minimum-distance="30" fontset-name="book-fonts">[ref]</ShieldSymbolizer>
3323    </Rule>
3324    <Rule>
3325      <Filter>[highway] = 'secondary' and not [bridge]='yes'</Filter>
3326      &maxscale_zoom13;
3327      &minscale_zoom18;
3328      <ShieldSymbolizer size="10" fill="#000" placement="line" file="&symbols;/L[length].png" spacing="750" minimum-distance="40" fontset-name="book-fonts">[ref]</ShieldSymbolizer>
3329    </Rule>
3330    <Rule>
3331      <Filter>[highway] = 'tertiary' and not [bridge]='yes'</Filter>
3332      &maxscale_zoom13;
3333      &minscale_zoom18;
3334      <ShieldSymbolizer size="10" fill="#000" placement="line" file="&symbols;/L[length].png" spacing="750" minimum-distance="40" fontset-name="book-fonts">[ref]</ShieldSymbolizer>
3335    </Rule>
3336    <Rule>
3337      <Filter>([highway] = 'unclassified' or [highway]='residential') and not [bridge]='yes'</Filter>
3338      &maxscale_zoom15;
3339      <TextSymbolizer size="10" fill="#000" spacing="750" minimum-distance="18" fontset-name="book-fonts" halo-radius="1">[ref]</TextSymbolizer>
3340    </Rule>
3341    <Rule>
3342      <Filter>([aeroway] = 'runway' or [aeroway]='taxiway') and not [bridge]='yes'</Filter>
3343      &maxscale_zoom15;
3344      <TextSymbolizer size="10" fill="#333" spacing="750" placement="line" minimum-distance="18" fontset-name="book-fonts" halo-radius="1">[ref]</TextSymbolizer>
3345    </Rule>
3346</Style>
3347<Style name="roads-text-name">
3348    <Rule>
3349      <Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
3350      &maxscale_zoom13;
3351      &minscale_zoom13;
3352      <TextSymbolizer size="8" fill="black" placement="line" fontset-name="book-fonts" halo-radius="0">[name]</TextSymbolizer>
3353    </Rule>
3354    <Rule>
3355      <Filter>[highway] = 'secondary'</Filter>
3356      &maxscale_zoom13;
3357      &minscale_zoom13;
3358      <TextSymbolizer size="8" fill="black" placement="line" fontset-name="book-fonts" halo-radius="1" halo-fill="#f7e96a">[name]</TextSymbolizer>
3359    </Rule>
3360    <Rule>
3361      <Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
3362      &maxscale_zoom14;
3363      &minscale_zoom14;
3364      <TextSymbolizer size="9" fill="black" placement="line" fontset-name="book-fonts" halo-radius="0">[name]</TextSymbolizer>
3365    </Rule>
3366    <Rule>
3367      <Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
3368      &maxscale_zoom15;
3369      &minscale_zoom18;
3370      <TextSymbolizer size="10" fill="black" placement="line" fontset-name="book-fonts" halo-radius="0">[name]</TextSymbolizer>
3371    </Rule>
3372    <Rule>
3373      <Filter>[highway] = 'secondary'</Filter>
3374      &maxscale_zoom14;
3375      &minscale_zoom14;
3376      <TextSymbolizer size="9" fill="black" placement="line" fontset-name="book-fonts" halo-radius="1" halo-fill="#f7e96a">[name]</TextSymbolizer>
3377    </Rule><Rule>
3378      <Filter>[highway] = 'secondary'</Filter>
3379      &maxscale_zoom15;
3380      &minscale_zoom18;
3381      <TextSymbolizer size="10" fill="black" placement="line" fontset-name="book-fonts" halo-radius="1" halo-fill="#f7e96a">[name]</TextSymbolizer>
3382    </Rule>
3383    <Rule>
3384      <Filter>[highway] = 'tertiary'</Filter>
3385      &maxscale_zoom15;
3386      &minscale_zoom16;
3387      <TextSymbolizer size="9" fill="#000" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3388    </Rule>
3389    <Rule>
3390      <Filter>[highway] = 'tertiary'</Filter>
3391      &maxscale_zoom17;
3392      &minscale_zoom18;
3393      <TextSymbolizer size="11" fill="#000" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3394    </Rule>
3395    <Rule>
3396      &maxscale_zoom13;
3397      &minscale_zoom15;
3398      <Filter>[highway] = 'proposed' or [highway]='construction'</Filter>
3399      <TextSymbolizer size="9" fill="#000" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3400    </Rule>
3401    <Rule>
3402      &maxscale_zoom16;
3403      &minscale_zoom18;
3404      <Filter>[highway] = 'proposed' or [highway]='construction'</Filter>
3405      <TextSymbolizer size="11" fill="#000" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3406    </Rule>
3407    <Rule>
3408      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
3409      &maxscale_zoom15;
3410      &minscale_zoom15;
3411      <TextSymbolizer size="8" fill="#000" spacing="300" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3412    </Rule>
3413    <Rule>
3414      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
3415      &maxscale_zoom16;
3416      &minscale_zoom16;
3417      <TextSymbolizer size="9" fill="#000" spacing="300" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3418    </Rule>
3419    <Rule>
3420      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
3421      &maxscale_zoom17;
3422      &minscale_zoom18;
3423      <TextSymbolizer size="11" fill="#000" spacing="400" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3424    </Rule>
3425    <Rule>
3426      <ElseFilter/>
3427      &maxscale_zoom15;
3428      &minscale_zoom16;
3429      <TextSymbolizer size="9" fill="#000" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3430    </Rule>
3431    <Rule>
3432      <ElseFilter/>
3433      &maxscale_zoom17;
3434      &minscale_zoom18;
3435      <TextSymbolizer size="11" fill="#000" placement="line" fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
3436    </Rule>
3437</Style>
3438<Style name="cliffs">
3439     <Rule>
3440      &maxscale_zoom13;
3441      &minscale_zoom14;
3442      <Filter>[natural] = 'cliff'</Filter>       
3443      <LinePatternSymbolizer file="&symbols;/cliff.png"/>
3444    </Rule>
3445    <Rule>
3446      &maxscale_zoom15;
3447      <Filter>[natural] = 'cliff'</Filter>
3448      <LinePatternSymbolizer file="&symbols;/cliff2.png"/>
3449    </Rule>
3450    <Rule>
3451      &maxscale_zoom15;
3452      <Filter>[man_made] = 'embankment'</Filter>
3453      <LinePatternSymbolizer file="&symbols;/cliff.png"/>
3454    </Rule>
3455</Style>
3456<Style name="barriers_area">
3457    <Rule>
3458      <Filter>[natural]='hedge' or [barrier] = 'hedge'</Filter>
3459      &maxscale_zoom16;
3460      <PolygonSymbolizer fill="#aed1a0"/>
3461    </Rule>
3462    <Rule>
3463      &maxscale_zoom16;
3464      <Filter>[barrier] != '' and not [barrier] = 'hedge'</Filter>
3465      <LineSymbolizer stroke="#444" stroke-width="0.4"/>
3466    </Rule>
3467</Style>
3468<Style name="barriers">
3469    <Rule>
3470      &maxscale_zoom14;
3471      <Filter>[barrier] = 'embankment'</Filter>
3472      <LineSymbolizer stroke="#444" stroke-width="0.4"/>
3473    </Rule>
3474    <Rule>
3475      &maxscale_zoom16;
3476      <Filter>[natural]='hedge' or [barrier] = 'hedge'</Filter>
3477      <LineSymbolizer stroke="#aed1a0" stroke-width="3"/>
3478    </Rule>
3479    <Rule>
3480      &maxscale_zoom16;
3481      <Filter>[barrier] != '' and not ([barrier] = 'hedge' or [barrier] = 'embankment')</Filter>
3482      <LineSymbolizer stroke="#444" stroke-width="0.4"/>
3483    </Rule>
3484</Style>
3485<Style name="directions">
3486    <Rule>
3487      <Filter>[oneway] = 'yes'</Filter>
3488      &maxscale_zoom16;
3489      <LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="1" stroke-dasharray="0,12,10,152"/>
3490      <LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="2" stroke-dasharray="0,12,9,153"/>
3491      <LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="3" stroke-dasharray="0,18,2,154"/>
3492      <LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="4" stroke-dasharray="0,18,1,155"/>
3493    </Rule>
3494    <Rule>
3495      <Filter>[oneway] = '-1'</Filter>
3496      &maxscale_zoom16;
3497      <LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="1" stroke-dasharray="0,12,10,152"/>
3498      <LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="2" stroke-dasharray="0,13,9,152"/>
3499      <LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="3" stroke-dasharray="0,14,2,158"/>
3500      <LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="4" stroke-dasharray="0,15,1,158"/>
3501    </Rule>
3502</Style>
3503<Style name="boundary">
3504    <Rule>
3505      &maxscale_zoom7;
3506      &minscale_zoom9;
3507      <PolygonSymbolizer fill-opacity="0.05" fill="green"/>
3508      <LineSymbolizer stroke="green" stroke-width="1.5" stroke-dasharray="4,2" stroke-opacity="0.15"/>
3509    </Rule>
3510    <Rule>
3511      &maxscale_zoom10;
3512      &minscale_zoom12;
3513      <PolygonSymbolizer fill-opacity="0.05" fill="green"/>
3514      <LineSymbolizer stroke="green" stroke-width="3" stroke-dasharray="6,2" stroke-opacity="0.15"/>
3515    </Rule>
3516    <Rule>
3517      &maxscale_zoom13;
3518      &minscale_zoom18;
3519      <LineSymbolizer stroke="green" stroke-width="3" stroke-dasharray="6,2" stroke-opacity="0.15"/>
3520    </Rule>
3521    <Rule>
3522      <Filter>[way_area] &gt;= 200000000</Filter>
3523      &maxscale_zoom9;
3524      &minscale_zoom9;
3525      <TextSymbolizer size="8" fill="#9c9" fontset-name="bold-fonts" halo-radius="1" wrap-width="14">[name]</TextSymbolizer>
3526    </Rule>
3527    <Rule>
3528      &maxscale_zoom10;
3529      &minscale_zoom11;
3530      <TextSymbolizer size="9" fill="#9c9" fontset-name="bold-fonts" halo-radius="1" wrap-width="14">[name]</TextSymbolizer>
3531    </Rule>
3532</Style>
3533<Style name="theme_park">
3534<Rule>
3535      &maxscale_zoom13;
3536      &minscale_zoom14;
3537      <Filter>[tourism]='theme_park'</Filter>
3538      <LineSymbolizer stroke="#734a08" stroke-width="1.5" stroke-dasharray="9,3" stroke-opacity="0.6"/>
3539    </Rule>
3540    <Rule>
3541      &maxscale_zoom15;
3542      &minscale_zoom18;
3543      <Filter>[tourism]='theme_park'</Filter>
3544      <LineSymbolizer stroke="#734a08" stroke-width="2.5" stroke-dasharray="9,3" stroke-opacity="0.6"/>
3545    </Rule>
3546</Style>
3547
3548&layer-shapefiles;
3549&layer-landcover;
3550&layer-water;
3551&layer-water_features;
3552<Layer name="tunnels" status="on" srs="&osm2pgsql_projection;">
3553    <StyleName>tunnels-casing</StyleName>
3554    <StyleName>tunnels-fill</StyleName>
3555    <Datasource>
3556      <Parameter name="table">
3557      (select way,highway from &prefix;_line where highway in ('motorway','motorway_link','trunk','trunk_link','primary','primary_link','secondary','secondary_link','tertiary','tertiary_link','residential','unclassified') and tunnel in ('yes','true','1') order by z_order) as roads
3558      </Parameter>
3559      &datasource-settings;
3560    </Datasource>
3561</Layer>
3562&layer-citywall;
3563<Layer name="landuse_overlay" status="on" srs="&osm2pgsql_projection;">
3564    <StyleName>landuse_overlay</StyleName>
3565    <Datasource>
3566      <Parameter name="table">
3567      (select way,landuse,leisure
3568       from &prefix;_polygon
3569       where (landuse = 'military' or leisure='nature_reserve') and building is null
3570      ) as landuse_overlay
3571      </Parameter>
3572      &datasource-settings;
3573    </Datasource>
3574</Layer>
3575<Layer name="turning_circle-casing" status="on" srs="&osm2pgsql_projection;">
3576    <StyleName>turning_circle-casing</StyleName>   
3577    <Datasource>
3578      <Parameter name="table">
3579      (select distinct on (p.way) p.way as way,l.highway as int_tc_type
3580       from &prefix;_point p
3581       join &prefix;_line l
3582        on ST_DWithin(p.way,l.way,&dwithin_node_way;)
3583       join (values
3584        ('tertiary',1),
3585        ('unclassified',2),
3586        ('residential',3),
3587        ('living_street',4),
3588        ('service',5)
3589       ) as v (highway,prio)
3590        on v.highway=l.highway
3591       where p.highway='turning_circle'
3592       order by p.way,v.prio
3593      ) as turning_circle
3594      </Parameter>
3595      &datasource-settings;
3596    </Datasource>
3597</Layer>
3598<Layer name="footbikecycle-tunnels" status="on" srs="&osm2pgsql_projection;">
3599    <StyleName>footbikecycle-tunnels</StyleName>
3600    <Datasource>
3601      <Parameter name="table">
3602      (select way,highway,horse,foot,bicycle from &prefix;_line where highway in ('bridleway','footway','cycleway','path') and tunnel in ('yes','true','1') order by z_order) as roads
3603      </Parameter>
3604      &datasource-settings;
3605    </Datasource>
3606</Layer>
3607<Layer name="tracks-tunnels" status="on" srs="&osm2pgsql_projection;">
3608    <StyleName>tracks-tunnels</StyleName>
3609    <Datasource>
3610      <Parameter name="table">
3611      (select way,tracktype from &prefix;_line where highway='track' and tunnel in ('yes','true','1')) as tracks
3612      </Parameter>
3613      &datasource-settings;
3614    </Datasource>
3615</Layer>
3616<Layer name="line features" status="on" srs="&osm2pgsql_projection;">
3617     <StyleName>cliffs</StyleName>
3618     <StyleName>barriers</StyleName>
3619     <Datasource>
3620      <Parameter name="table">
3621      (select way,barrier,"natural",man_made from &prefix;_line where barrier is not null or "natural" in ('hedge','cliff') or man_made='embankment') as roads
3622      </Parameter>
3623      &datasource-settings;
3624    </Datasource>
3625</Layer>
3626<Layer name="polygon barriers" status="on" srs="&osm2pgsql_projection;">
3627      <StyleName>barriers_area</StyleName>
3628      <Datasource>
3629             <Parameter name="table">
3630       (select way,barrier,"natural" from &prefix;_polygon where barrier is not null or "natural"='hedge') as barriers
3631       </Parameter>
3632      &datasource-settings;
3633    </Datasource>
3634</Layer>
3635<Layer name="highway-area-casing" status="on" srs="&osm2pgsql_projection;">
3636    <StyleName>highway-area-casing</StyleName>
3637    <Datasource>
3638      <Parameter name="table">
3639      (select way,highway,railway,bicycle,tunnel,foot from &prefix;_polygon
3640       where highway in ('residential','unclassified','pedestrian','service','footway','track','path','platform','cycleway')
3641          or railway='platform'
3642       order by z_order,way_area desc) as roads
3643      </Parameter>
3644      &datasource-settings;
3645    </Datasource>
3646</Layer>
3647<Layer name="minor-roads-casing" status="on" srs="&osm2pgsql_projection;">
3648    <StyleName>minor-roads-casing-links</StyleName>
3649    <StyleName>minor-roads-casing</StyleName>
3650    <Datasource>
3651      <Parameter name="table">
3652      (select way,highway,bicycle,foot,
3653       case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel,
3654       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text else service end as service
3655       from &prefix;_line
3656       where highway in ('motorway','motorway_link','trunk','trunk_link','primary','primary_link','secondary','secondary_link','tertiary','tertiary_link','residential','unclassified','road','service','pedestrian','raceway','living_street','footway','path','cycleway')
3657       order by z_order) as roads
3658      </Parameter>
3659      &datasource-settings;
3660    </Datasource>
3661</Layer>
3662<Layer name="highway-area-fill" status="on" srs="&osm2pgsql_projection;">
3663    <StyleName>highway-area-fill</StyleName>
3664    <Datasource>
3665      <Parameter name="table">
3666      (select way,highway,railway,aeroway,foot,bicycle,tunnel from &prefix;_polygon
3667       where highway in ('residential','unclassified','pedestrian','service','footway','living_street','track','path','platform','services','cycleway')
3668          or railway='platform'
3669          or aeroway in ('runway','taxiway','helipad')
3670       order by z_order,way_area desc) as roads
3671      </Parameter>
3672      &datasource-settings;
3673    </Datasource>
3674</Layer>
3675&layer-buildings;
3676<Layer name="tracks-notunnel-nobridge" status="on" srs="&osm2pgsql_projection;">
3677    <StyleName>tracks-notunnel-nobridge</StyleName>
3678    <Datasource>
3679      <Parameter name="table">
3680      (select way,tracktype from &prefix;_line where highway='track' and (bridge is null or bridge in ('no','false','0')) and (tunnel is null or tunnel in ('no','false','0'))) as tracks
3681      </Parameter>
3682      &datasource-settings;
3683    </Datasource>
3684</Layer>
3685<Layer name="minor-roads-fill" status="on" srs="&osm2pgsql_projection;">
3686    <StyleName>minor-roads-fill-links</StyleName>
3687    <StyleName>minor-roads-fill</StyleName>
3688    <Datasource>
3689      <Parameter name="table">
3690      (select way,highway,horse,bicycle,foot,construction,aeroway,
3691       case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel,
3692       case when bridge in ('yes','true','1','viaduct') then 'yes'::text else bridge end as bridge,
3693       case when railway in ('spur','siding')
3694              or (railway='rail' and service in ('spur','siding','yard'))
3695            then 'spur-siding-yard'::text else railway end as railway,
3696       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text else service end as service
3697       from &prefix;_line
3698       where highway is not null
3699          or aeroway in ('runway','taxiway')
3700          or railway in ('light_rail','narrow_gauge','funicular','rail','subway','tram','spur','siding','platform','disused','abandoned','construction','miniature','turntable')
3701       order by z_order) as roads
3702      </Parameter>
3703      &datasource-settings;
3704    </Datasource>
3705</Layer>
3706<Layer name="turning_circle-fill" status="on" srs="&osm2pgsql_projection;">
3707    <StyleName>turning_circle-fill</StyleName>   
3708    <Datasource>
3709      <Parameter name="table">
3710      (select distinct on (p.way) p.way as way,l.highway as int_tc_type
3711       from &prefix;_point p
3712       join &prefix;_line l
3713        on ST_DWithin(p.way,l.way,&dwithin_node_way;)
3714       join (values
3715        ('tertiary',1),
3716        ('unclassified',2),
3717        ('residential',3),
3718        ('living_street',4),
3719        ('service',5)
3720       ) as v (highway,prio)
3721        on v.highway=l.highway
3722       where p.highway='turning_circle'
3723       order by p.way,v.prio
3724      ) as turning_circle
3725      </Parameter>
3726      &datasource-settings;
3727    </Datasource>
3728</Layer>
3729&layer-ferry-routes;
3730&layer-aerialways;
3731<Layer name="roads" status="on" srs="&osm2pgsql_projection;">
3732    <StyleName>roads-casing</StyleName>
3733    <StyleName>roads</StyleName>
3734    <Datasource>
3735      <Parameter name="table">
3736      (select way,highway,
3737       case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel,
3738       case when railway='preserved' and service in ('spur','siding','yard') then 'INT-preserved-ssy'::text else railway end as railway
3739       from &prefix;_roads
3740       where highway is not null
3741          or (railway is not null and railway!='preserved' and (service is null or service not in ('spur','siding','yard')))
3742          or railway='preserved'
3743       order by z_order
3744      ) as roads
3745      </Parameter>
3746      &datasource-settings;
3747    </Datasource>
3748</Layer>
3749<Layer name="waterway-bridges" status="on" srs="&osm2pgsql_projection;">
3750    <StyleName>waterway-bridges</StyleName>
3751    <Datasource>
3752      <Parameter name="table">(select way,name from &prefix;_line where waterway='canal' and bridge in ('yes','true','1','aqueduct') order by z_order) as water</Parameter>
3753      &datasource-settings;
3754    </Datasource>
3755</Layer>
3756<Layer name="access-pre_bridges" status="on" srs="&osm2pgsql_projection;">
3757    <StyleName>access</StyleName>
3758    <Datasource>
3759      <Parameter name="table">
3760      (select way,access,highway,
3761       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text end as service
3762       from &prefix;_line
3763       where access is not null and highway is not null
3764         and (bridge is null or bridge not in ('yes','true','1','viaduct'))
3765      ) as access
3766      </Parameter>
3767      &datasource-settings;
3768    </Datasource>
3769</Layer>
3770<Layer name="direction_pre_bridges" status="on" srs="&osm2pgsql_projection;">
3771     <StyleName>directions</StyleName>
3772     <Datasource>
3773      <Parameter name="table">
3774      (select way,
3775       case when oneway in ('yes','true','1') then 'yes'::text else oneway end as oneway
3776       from &prefix;_line
3777       where oneway is not null
3778         and (highway is not null or railway is not null or waterway is not null)
3779         and (bridge is null or bridge not in ('yes','true','1','viaduct'))
3780      ) as directions
3781      </Parameter>
3782      &datasource-settings;
3783    </Datasource>
3784</Layer>
3785<Layer name="bridges_layer0" status="on" srs="&osm2pgsql_projection;">
3786    <StyleName>bridges_casing</StyleName>
3787    <StyleName>bridges_casing2</StyleName>
3788    <StyleName>bridges_fill</StyleName>
3789    <Datasource>
3790      <Parameter name="table">
3791      (select way,highway,aeroway,horse,bicycle,foot,tracktype,
3792       case when railway in ('spur','siding')
3793              or (railway='rail' and service in ('spur','siding','yard'))
3794            then 'INT-spur-siding-yard'::text else railway end as railway
3795       from &prefix;_line
3796       where (highway is not null
3797              or aeroway in ('runway','taxiway')
3798              or railway in ('light_rail','subway','narrow_gauge','rail','spur','siding','disused','abandoned','construction'))
3799         and bridge in ('yes','true','1','viaduct')
3800         and (layer is null or layer = '0')
3801       order by z_order
3802      ) as roads
3803      </Parameter>
3804      &datasource-settings;
3805    </Datasource>
3806</Layer>
3807<Layer name="bridges_access0" status="on" srs="&osm2pgsql_projection;">
3808    <StyleName>access</StyleName>
3809    <Datasource>
3810      <Parameter name="table">
3811      (select way,access,highway,
3812       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text end as service
3813       from &prefix;_line
3814       where access is not null and highway is not null
3815         and bridge in ('yes','true','1','viaduct')
3816         and (layer is null or layer in ('-5','-4','-3','-2','-1','0'))
3817      ) as access
3818      </Parameter>
3819      &datasource-settings;
3820    </Datasource>
3821</Layer>
3822<Layer name="bridges_directions0" status="on" srs="&osm2pgsql_projection;">
3823     <StyleName>directions</StyleName>
3824     <Datasource>
3825      <Parameter name="table">
3826      (select way,
3827       case when oneway in ('yes','true','1') then 'yes'::text else oneway end as oneway
3828       from &prefix;_line
3829       where oneway is not null
3830         and (highway is not null or railway is not null or waterway is not null)
3831         and bridge in ('yes','true','1','viaduct')
3832         and (layer is null or layer in ('-5','-4','-3','-2','-1','0'))
3833      ) as directions
3834      </Parameter>
3835      &datasource-settings;
3836    </Datasource>
3837</Layer>
3838<Layer name="bridges_layer1" status="on" srs="&osm2pgsql_projection;">
3839    <StyleName>bridges_casing</StyleName>
3840    <StyleName>bridges_casing2</StyleName>
3841    <StyleName>bridges_fill</StyleName>
3842    <Datasource>
3843      <Parameter name="table">
3844      (select way,highway,aeroway,horse,bicycle,foot,tracktype,
3845       case when railway in ('spur','siding')
3846              or (railway='rail' and service in ('spur','siding','yard'))
3847            then 'INT-spur-siding-yard'::text else railway end as railway
3848       from &prefix;_line
3849       where (highway is not null
3850              or aeroway in ('runway','taxiway')
3851              or railway in ('light_rail','subway','narrow_gauge','rail','spur','siding','disused','abandoned','construction'))
3852         and bridge in ('yes','true','1','viaduct')
3853         and layer = '1'
3854       order by z_order
3855      ) as roads
3856      </Parameter>
3857      &datasource-settings;
3858    </Datasource>
3859</Layer>
3860<Layer name="bridges_access1" status="on" srs="&osm2pgsql_projection;">
3861    <StyleName>access</StyleName>
3862    <Datasource>
3863      <Parameter name="table">
3864      (select way,access,highway,
3865       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text end as service
3866       from &prefix;_line
3867       where access is not null and highway is not null
3868         and bridge in ('yes','true','1','viaduct')
3869         and layer = '1'
3870      ) as access
3871      </Parameter>
3872      &datasource-settings;
3873    </Datasource>
3874</Layer>
3875<Layer name="bridges_directions1" status="on" srs="&osm2pgsql_projection;">
3876     <StyleName>directions</StyleName>
3877     <Datasource>
3878      <Parameter name="table">
3879      (select way,
3880       case when oneway in ('yes','true','1') then 'yes'::text else oneway end as oneway
3881       from &prefix;_line
3882       where oneway is not null
3883         and (highway is not null or railway is not null or waterway is not null)
3884         and bridge in ('yes','true','1','viaduct')
3885         and layer = '1'
3886      ) as directions
3887      </Parameter>
3888      &datasource-settings;
3889    </Datasource>
3890</Layer>
3891<Layer name="bridges_layer2" status="on" srs="&osm2pgsql_projection;">
3892    <StyleName>bridges_casing</StyleName>
3893    <StyleName>bridges_casing2</StyleName>
3894    <StyleName>bridges_fill</StyleName>
3895    <Datasource>
3896      <Parameter name="table">
3897      (select way,highway,aeroway,horse,bicycle,foot,tracktype,
3898       case when railway in ('spur','siding')
3899              or (railway='rail' and service in ('spur','siding','yard'))
3900            then 'INT-spur-siding-yard'::text else railway end as railway
3901       from &prefix;_line
3902       where (highway is not null
3903              or aeroway in ('runway','taxiway')
3904              or railway in ('light_rail','subway','narrow_gauge','rail','spur','siding','disused','abandoned','construction'))
3905         and bridge in ('yes','true','1','viaduct')
3906         and layer = '2'
3907       order by z_order
3908      ) as roads
3909      </Parameter>
3910      &datasource-settings;
3911    </Datasource>
3912</Layer>
3913<Layer name="bridges_access2" status="on" srs="&osm2pgsql_projection;">
3914    <StyleName>access</StyleName>
3915    <Datasource>
3916      <Parameter name="table">
3917      (select way,access,highway,
3918       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text end as service
3919       from &prefix;_line
3920       where access is not null and highway is not null
3921         and bridge in ('yes','true','1','viaduct')
3922         and layer = '2'
3923      ) as access
3924      </Parameter>
3925      &datasource-settings;
3926    </Datasource>
3927</Layer>
3928<Layer name="bridges_directions2" status="on" srs="&osm2pgsql_projection;">
3929     <StyleName>directions</StyleName>
3930     <Datasource>
3931      <Parameter name="table">
3932      (select way,
3933       case when oneway in ('yes','true','1') then 'yes'::text else oneway end as oneway
3934       from &prefix;_line
3935       where oneway is not null
3936         and (highway is not null or railway is not null or waterway is not null)
3937         and bridge in ('yes','true','1','viaduct')
3938         and layer = '2'
3939      ) as directions
3940      </Parameter>
3941      &datasource-settings;
3942    </Datasource>
3943</Layer>
3944<Layer name="bridges_layer3" status="on" srs="&osm2pgsql_projection;">
3945    <StyleName>bridges_casing</StyleName>
3946    <StyleName>bridges_casing2</StyleName>
3947    <StyleName>bridges_fill</StyleName>
3948    <Datasource>
3949      <Parameter name="table">
3950      (select way,highway,aeroway,horse,bicycle,foot,tracktype,
3951       case when railway in ('spur','siding')
3952              or (railway='rail' and service in ('spur','siding','yard'))
3953            then 'INT-spur-siding-yard'::text else railway end as railway
3954       from &prefix;_line
3955       where (highway is not null
3956              or aeroway in ('runway','taxiway')
3957              or railway in ('light_rail','subway','narrow_gauge','rail','spur','siding','disused','abandoned','construction'))
3958         and bridge in ('yes','true','1','viaduct')
3959         and layer = '3'
3960       order by z_order
3961      ) as roads
3962      </Parameter>
3963      &datasource-settings;
3964    </Datasource>
3965</Layer>
3966<Layer name="bridges_access3" status="on" srs="&osm2pgsql_projection;">
3967    <StyleName>access</StyleName>
3968    <Datasource>
3969      <Parameter name="table">
3970      (select way,access,highway,
3971       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text end as service
3972       from &prefix;_line
3973       where access is not null and highway is not null
3974         and bridge in ('yes','true','1','viaduct')
3975         and layer = '3'
3976      ) as access
3977      </Parameter>
3978      &datasource-settings;
3979    </Datasource>
3980</Layer>
3981<Layer name="bridges_directions3" status="on" srs="&osm2pgsql_projection;">
3982     <StyleName>directions</StyleName>
3983     <Datasource>
3984      <Parameter name="table">
3985      (select way,
3986       case when oneway in ('yes','true','1') then 'yes'::text else oneway end as oneway
3987       from &prefix;_line
3988       where oneway is not null
3989         and (highway is not null or railway is not null or waterway is not null)
3990         and bridge in ('yes','true','1','viaduct')
3991         and layer = '3'
3992      ) as directions
3993      </Parameter>
3994      &datasource-settings;
3995    </Datasource>
3996</Layer>
3997<Layer name="bridges_layer4" status="on" srs="&osm2pgsql_projection;">
3998    <StyleName>bridges_casing</StyleName>
3999    <StyleName>bridges_casing2</StyleName>
4000    <StyleName>bridges_fill</StyleName>
4001    <Datasource>
4002      <Parameter name="table">
4003      (select way,highway,aeroway,horse,bicycle,foot,tracktype,
4004       case when railway in ('spur','siding')
4005              or (railway='rail' and service in ('spur','siding','yard'))
4006            then 'INT-spur-siding-yard'::text else railway end as railway
4007       from &prefix;_line
4008       where (highway is not null
4009              or aeroway in ('runway','taxiway')
4010              or railway in ('light_rail','subway','narrow_gauge','rail','spur','siding','disused','abandoned','construction'))
4011         and bridge in ('yes','true','1','viaduct')
4012         and layer = '4'
4013       order by z_order
4014      ) as roads
4015      </Parameter>
4016      &datasource-settings;
4017    </Datasource>
4018</Layer>
4019<Layer name="bridges_access4" status="on" srs="&osm2pgsql_projection;">
4020    <StyleName>access</StyleName>
4021    <Datasource>
4022      <Parameter name="table">
4023      (select way,access,highway,
4024       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text end as service
4025       from &prefix;_line
4026       where access is not null and highway is not null
4027         and bridge in ('yes','true','1','viaduct')
4028         and layer = '4'
4029      ) as access
4030      </Parameter>
4031      &datasource-settings;
4032    </Datasource>
4033</Layer>
4034<Layer name="bridges_directions4" status="on" srs="&osm2pgsql_projection;">
4035     <StyleName>directions</StyleName>
4036     <Datasource>
4037      <Parameter name="table">
4038      (select way,
4039       case when oneway in ('yes','true','1') then 'yes'::text else oneway end as oneway
4040       from &prefix;_line
4041       where oneway is not null
4042         and (highway is not null or railway is not null or waterway is not null)
4043         and bridge in ('yes','true','1','viaduct')
4044         and layer = '4'
4045      ) as directions
4046      </Parameter>
4047      &datasource-settings;
4048    </Datasource>
4049</Layer>
4050<Layer name="bridges_layer5" status="on" srs="&osm2pgsql_projection;">
4051    <StyleName>bridges_casing</StyleName>
4052    <StyleName>bridges_casing2</StyleName>
4053    <StyleName>bridges_fill</StyleName>
4054    <Datasource>
4055      <Parameter name="table">
4056      (select way,highway,aeroway,horse,bicycle,foot,tracktype,
4057       case when railway in ('spur','siding')
4058              or (railway='rail' and service in ('spur','siding','yard'))
4059            then 'INT-spur-siding-yard'::text else railway end as railway
4060       from &prefix;_line
4061       where (highway is not null
4062              or aeroway in ('runway','taxiway')
4063              or railway in ('light_rail','subway','narrow_gauge','rail','spur','siding','disused','abandoned','construction'))
4064         and bridge in ('yes','true','1','viaduct')
4065         and layer = '5'
4066       order by z_order
4067      ) as roads
4068      </Parameter>
4069      &datasource-settings;
4070    </Datasource>
4071</Layer>
4072<Layer name="bridges_access5" status="on" srs="&osm2pgsql_projection;">
4073    <StyleName>access</StyleName>
4074    <Datasource>
4075      <Parameter name="table">
4076      (select way,access,highway,
4077       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text end as service
4078       from &prefix;_line
4079       where access is not null and highway is not null
4080         and bridge in ('yes','true','1','viaduct')
4081         and layer = '5'
4082      ) as access
4083      </Parameter>
4084      &datasource-settings;
4085    </Datasource>
4086</Layer>
4087<Layer name="bridges_directions5" status="on" srs="&osm2pgsql_projection;">
4088     <StyleName>directions</StyleName>
4089     <Datasource>
4090      <Parameter name="table">
4091      (select way,
4092       case when oneway in ('yes','true','1') then 'yes'::text else oneway end as oneway
4093       from &prefix;_line
4094       where oneway is not null
4095         and (highway is not null or railway is not null or waterway is not null)
4096         and bridge in ('yes','true','1','viaduct')
4097         and layer = '5'
4098      ) as directions
4099      </Parameter>
4100      &datasource-settings;
4101    </Datasource>
4102</Layer>
4103<Layer name="trams" status="on" srs="&osm2pgsql_projection;">
4104    <StyleName>trams</StyleName>
4105    <Datasource>
4106      <Parameter name="table">
4107      (select way,railway,bridge from &prefix;_line where railway='tram' and (tunnel is null or tunnel not in ('yes','true','1'))) as trams
4108      </Parameter>
4109      &datasource-settings;
4110    </Datasource>
4111</Layer>
4112<Layer name="guideways" status="on" srs="&osm2pgsql_projection;">
4113    <StyleName>guideways</StyleName>
4114    <Datasource>
4115      <Parameter name="table">
4116      (select way from &prefix;_line where highway='bus_guideway' and (tunnel is null or tunnel not in ('yes','true','1'))) as guideways
4117      </Parameter>
4118      &datasource-settings;
4119    </Datasource>
4120</Layer>
4121&layer-admin;
4122&layer-placenames;
4123&layer-amenity-stations;
4124&layer-amenity-symbols;
4125&layer-amenity-points;
4126&layer-power;
4127<Layer name="roads-text-ref-low-zoom" status="on" srs="&osm2pgsql_projection;">
4128     <StyleName>roads-text-ref-low-zoom</StyleName>
4129     <Datasource>
4130      <Parameter name="table">
4131      (select way,highway,ref,char_length(ref) as length
4132       from &prefix;_roads
4133       where highway in ('motorway','trunk','primary','secondary')
4134         and ref is not null
4135         and char_length(ref) between 1 and 8
4136      ) as roads
4137      </Parameter>
4138      &datasource-settings;
4139    </Datasource>
4140</Layer>
4141<Layer name="highway-junctions" status="on" srs="&osm2pgsql_projection;">
4142    <StyleName>highway-junctions</StyleName>
4143    <Datasource>
4144     <Parameter name="table">
4145     (select way,ref,coalesce("name:de",name) as name
4146      from &prefix;_point
4147      where highway='motorway_junction'
4148     ) as junctions
4149     </Parameter>
4150     &datasource-settings;
4151    </Datasource>
4152</Layer>
4153<Layer name="roads-text-ref" status="on" srs="&osm2pgsql_projection;">
4154     <StyleName>roads-text-ref</StyleName>
4155     <Datasource>
4156      <Parameter name="table">
4157      (select way,highway,aeroway,ref,char_length(ref) as length,
4158       case when bridge in ('yes','true','1') then 'yes'::text else bridge end as bridge
4159       from &prefix;_line
4160       where (highway is not null or aeroway is not null)
4161         and ref is not null
4162         and char_length(ref) between 1 and 8
4163      ) as roads
4164      </Parameter>
4165      &datasource-settings;
4166    </Datasource>
4167</Layer>
4168<Layer name="roads-text-name" status="on" srs="&osm2pgsql_projection;">
4169     <StyleName>roads-text-name</StyleName>
4170     <Datasource>
4171      <Parameter name="table">
4172      (select way,highway,coalesce("name:de",name) as name
4173       from &prefix;_line
4174       where waterway IS NULL
4175         and leisure IS NULL
4176         and landuse IS NULL
4177         and name is not null
4178      ) as roads
4179      </Parameter>
4180      &datasource-settings;
4181    </Datasource>
4182</Layer>
4183<Layer name="text" status="on" srs="&osm2pgsql_projection;">
4184    <StyleName>text</StyleName>
4185    <Datasource>
4186      <Parameter name="table">
4187            <!-- ToDo: Style-de hatte shop hier rausgenommen (?) -->
4188      (select way,amenity,shop,access,leisure,landuse,man_made,"natural",place,tourism,ele,coalesce("name:de",name) as name,ref,military,aeroway,waterway,historic,'yes'::text as point
4189       from &prefix;_point
4190       where amenity is not null
4191          or shop in ('supermarket','bakery','clothes','fashion','convenience','doityourself','hairdresser','department_store','butcher','car','car_repair','bicycle','florist')
4192          or leisure is not null
4193          or landuse is not null
4194          or tourism is not null
4195          or "natural" is not null
4196          or man_made in ('lighthouse','windmill')
4197          or place='island'
4198          or military='danger_area'
4199          or aeroway='gate'
4200          or waterway='lock'
4201          or historic in ('memorial','archaeological_site')
4202      ) as text
4203      </Parameter>
4204      &datasource-settings;
4205    </Datasource>
4206</Layer>
4207<Layer name="text-poly" status="on" srs="&osm2pgsql_projection;">
4208    <StyleName>text</StyleName>
4209    <Datasource>
4210      <Parameter name="table">
4211            <!-- ToDo: Style-de hatte shop hier rausgenommen (?) -->
4212      (select way,aeroway,shop,access,amenity,leisure,landuse,man_made,"natural",place,tourism,NULL as ele,coalesce("name:de",name) as name,ref,military,waterway,historic,'no'::text as point
4213       from &prefix;_polygon
4214       where amenity is not null
4215          or shop in ('supermarket','bakery','clothes','fashion','convenience','doityourself','hairdresser','department_store', 'butcher','car','car_repair','bicycle')
4216          or leisure is not null
4217          or landuse is not null
4218          or tourism is not null
4219          or "natural" is not null
4220          or man_made in ('lighthouse','windmill')
4221          or place='island'
4222          or military='danger_area'
4223          or historic in ('memorial','archaeological_site')
4224      ) as text
4225      </Parameter>
4226      &datasource-settings;
4227    </Datasource>
4228</Layer>
4229<Layer name="area-text" status="on" srs="&osm2pgsql_projection;">
4230    <StyleName>area-text</StyleName>
4231    <Datasource>
4232      <Parameter name="table">
4233      (select way,way_area, coalesce("name:de",name) as name
4234       from &prefix;_polygon
4235       where name is not null
4236         and (waterway is null or waterway != 'riverbank')
4237         and place is null
4238       order by way_area desc
4239      ) as text
4240      </Parameter>
4241      &datasource-settings;
4242    </Datasource>
4243</Layer>
4244&layer-addressing;
4245<Layer name="misc_boundaries" status="on" srs="&osm2pgsql_projection;">
4246    <StyleName>boundary</StyleName>
4247    <Datasource>
4248      <Parameter name="table">
4249      (select way,way_area,coalesce("name:de",name) as name,boundary from &prefix;_polygon where boundary='national_park' and building is null) as boundary
4250      </Parameter>
4251      &datasource-settings;
4252    </Datasource>
4253</Layer>
4254<Layer name="theme_park" status="on" srs="&osm2pgsql_projection;">
4255    <StyleName>theme_park</StyleName>
4256    <Datasource>
4257      <Parameter name="table">
4258      (select way,coalesce("name:de",name) as name,tourism from &prefix;_polygon where tourism='theme_park') as theme_park
4259      </Parameter>
4260      &datasource-settings;
4261    </Datasource>
4262</Layer>
4263</Map>
Note: See TracBrowser for help on using the repository browser.