This repository has been archived by the owner on May 7, 2024. It is now read-only.
forked from mapbox/mapbox-studio-pencil.tm2
-
Notifications
You must be signed in to change notification settings - Fork 8
/
road.mss
128 lines (123 loc) · 3.99 KB
/
road.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Line image patterns don't work well at lower zoomlevels,
// so we vary opacity, weight, and dasharrays to bring texture
// to regular line strokes.
#transportation['mapnik::geometry_type'=2]::line {
[class='motorway'] {
[zoom>=7][zoom<=11] {
a/line-width:0.6;
a/line-opacity:0.2;
a/line-dasharray:2,1;
b/line-width:0.8;
b/line-opacity:0.2;
b/line-dasharray:12,1;
[zoom>=9] {
a/line-opacity:0.1;
b/line-opacity:0.1;
}
[zoom>=8] {
a/line-width:1;
b/line-width:1.2;
}
[zoom>=10] {
a/line-width:1.6;
b/line-width:2.0;
}
}
[zoom=12] { line-pattern-file:url(img/line_solid_7.png); }
}
[class='trunk'],[class='primary'],[class='secondary'],[class='tertiary'] {
[zoom>=7][zoom<=11] {
a/line-color: #222;
a/line-opacity: 0.25;
a/line-width: 0.8;
[zoom=8] { a/line-width: 0.9; }
[zoom=9] { a/line-width: 1; }
[zoom=10] { a/line-width: 1.1; }
[zoom=11] { a/line-width: 1.2; }
}
[zoom=12] { line-pattern-file:url(img/line_solid_6.png); }
[zoom=13] { line-pattern-file:url(img/line_solid_7.png); }
}
[class='minor'],[class='track'] {
[zoom=12] {
a/line-width:1.5;
a/line-opacity:0.05;
a/line-dasharray:2,1;
b/line-width:1.2;
b/line-opacity:0.05;
b/line-dasharray:12,1;
}
[zoom=13] { line-pattern-file:url(img/line_solid_6.png); }
[zoom=14] { line-pattern-file:url(img/line_solid_6.png); }
}
[class='service'] {
[zoom>=15] { line-pattern-file:url(img/line_solid_6.png); }
}
[class='path'] {
[zoom=16] { line-pattern-file:url(img/line_dotted_4.png); }
[zoom>=17] { line-pattern-file:url(img/line_dotted_6.png); }
}
[class='railway'][zoom>=14],
['mapnik::geometry_type'=2] {
a/line-width:1;
a/line-opacity:0.05;
a/line-dasharray:2,1;
b/line-width:1.5;
b/line-opacity:0.05;
b/line-dasharray:12,1;
c/line-width:2;
c/line-opacity:0.05;
c/line-dasharray:20,3;
}
}
#transportation::case {
['mapnik::geometry_type'=2][zoom>=13][zoom<=20] {
[class='motorway'] {
[zoom=13] { line-pattern-file:url(img/line_double_14.png); }
[zoom=14] { line-pattern-file:url(img/line_double_16.png); }
[zoom=15] { line-pattern-file:url(img/line_double_18.png); }
[zoom>15] { line-pattern-file:url(img/line_double_20.png); }
}
[class='motorway_link'],
[class='main'] {
[zoom=14] { line-pattern-file:url(img/line_double_14.png); }
[zoom=15] { line-pattern-file:url(img/line_double_16.png); }
[zoom>15] { line-pattern-file:url(img/line_double_20.png); }
}
[class='street'],
[class='street_limited'] {
[zoom>=15] { line-pattern-file:url(img/line_double_14.png); }
[zoom>=16] { line-pattern-file:url(img/line_double_16.png); }
}
}
}
#transportation::dot['mapnik::geometry_type'=1][class='turning_circle'][zoom>=15] {
marker-width: 6;
[zoom>=16] { marker-width: 9; }
[zoom>=17] { marker-width: 12; }
marker-fill: #e6e6e6;
marker-line-color: #707070;
marker-line-width: 1.5;
}
#transportation::fill {
['mapnik::geometry_type'=2][zoom>=13][zoom<=20] {
[class='motorway'] {
[zoom=13] { line-pattern-file:url(img/line_double_14_mask.png); }
[zoom=14] { line-pattern-file:url(img/line_double_16_mask.png); }
[zoom=15] { line-pattern-file:url(img/line_double_18_mask.png); }
[zoom>15] { line-pattern-file:url(img/line_double_20_mask.png); }
}
[class='motorway_link'],
[class='main'] {
[zoom=14] { line-pattern-file:url(img/line_double_14_mask.png); }
[zoom=15] { line-pattern-file:url(img/line_double_16_mask.png); }
[zoom>15] { line-pattern-file:url(img/line_double_20_mask.png); }
}
[class='street'],
[class='street_limited'] {
[zoom>=15] { line-pattern-file:url(img/line_double_14_mask.png); }
[zoom>=16] { line-pattern-file:url(img/line_double_16_mask.png); }
}
}
}
#tunnel::case { opacity:0.25; }