This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
roads.mss
90 lines (85 loc) · 2.34 KB
/
roads.mss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// dummy styles to set ordering (case below fill)
#tunnel, #bridge, #road {
::case { opacity: 1; }
::fill { opacity: 1; }
}
// consistent case size
@case: 2;
// Road & Railway Fills //
#tunnel { opacity: 0.5; }
#road[zoom<11],
#tunnel[zoom<11],
#bridge[zoom<11] {
line-color: @road;
line-width: 0.25;
[class='motorway'][zoom>=5],
[class='main'][zoom>=6]{
line-width: 0.5;
}
[class='motorway'][zoom>=6] { line-width: 1; }
}
#road::fill[zoom>=11],
#tunnel::fill[zoom>=11],
#bridge::fill[zoom>=11] {
['mapnik::geometry_type'=2] {
line-color: @road;
line-width: 0.25;
[zoom>=15] { line-width: 1; }
[class='path'] { line-dasharray: 2,2;}
[class='major_rail'],
[class='minor_rail'] { line-dasharray: 3,3; }
[class='motorway'] {
[zoom>=11] { line-width: 2; }
[zoom>=12] { line-width: 3; }
[zoom>=14] { line-width: 4; }
[zoom>=16] { line-width: 7; }
[zoom>=18] { line-width: 10; }
}
[class='motorway_link'],
[class='main'] {
[zoom>=11] { line-width: 1; }
[zoom>=12] { line-width: 2; }
[zoom>=14] { line-width: 3; }
[zoom>=16] { line-width: 5; }
[zoom>=18] { line-width: 7; }
}
[class='street'],
[class='street_limited'] {
[zoom>=14] { line-width: 1; }
[zoom>=16] { line-width: 2; }
[zoom>=18] { line-width: 4; }
}
[class='street_limited'] { line-dasharray: 4,2; }
}
}
// Casing for high-zoom roads //
#road::case[zoom>=11],
#tunnel::case[zoom>=11],
#bridge::case[zoom>=11] {
['mapnik::geometry_type'=2] {
line-color: @land;
line-width: 1;
[class='motorway_link'] {
[zoom>=11] { line-width: 2 + @case; }
[zoom>=12] { line-width: 3 + @case; }
[zoom>=14] { line-width: 4 + @case; }
[zoom>=16] { line-width: 7 + @case; }
[zoom>=18] { line-width: 10 + @case; }
}
[class='motorway_link'],
[class='main'] {
[zoom>=11] { line-width: 1 + @case; }
[zoom>=12] { line-width: 2 + @case; }
[zoom>=14] { line-width: 3 + @case; }
[zoom>=16] { line-width: 5 + @case; }
[zoom>=18] { line-width: 7 + @case; }
}
[class='street'],
[class='street_limited'] {
[zoom>=14] { line-width: 1 + @case; }
[zoom>=16] { line-width: 2 + @case; }
[zoom>=18] { line-width: 4 + @case; }
}
[class='street_limited'] { line-dasharray: 4,2; }
}
}