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

Last change on this file since 34665 was 31081, checked in by giggls, 4 years ago

It's spring time so let's start rendering amenity=ice_cream :)

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