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

Last change on this file since 29094 was 29010, checked in by giggls, 7 years ago

Add buffer-size="256" to reduce the occurrence of brocken highway shields

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