source: subversion/applications/rendering/mapnik/osm.xml @ 27640

Last change on this file since 27640 was 27640, checked in by ldp, 8 years ago

Add secondary to low zoom shield layer. Length check done in SQL, removed from filters.

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