forked from OpenRailwayMap/OpenRailwayMap-CartoCSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maxspeed.mss
207 lines (204 loc) · 6.74 KB
/
maxspeed.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
@text-halo-color: white;
@text-halo-radius: 1;
@maxspeed_fill_color_10: #0100CB;
@maxspeed_fill_color_20: #001ECB;
@maxspeed_fill_color_30: #003DCB;
@maxspeed_fill_color_40: #005BCB;
@maxspeed_fill_color_50: #007ACB;
@maxspeed_fill_color_60: #0098CB;
@maxspeed_fill_color_70: #00B7CB;
@maxspeed_fill_color_80: #00CBC1;
@maxspeed_fill_color_90: #00CBA2;
@maxspeed_fill_color_100: #00CB84;
@maxspeed_fill_color_110: #00CB66;
@maxspeed_fill_color_120: #00CB47;
@maxspeed_fill_color_130: #00CB29;
@maxspeed_fill_color_140: #00CB0A;
@maxspeed_fill_color_150: #14CB00;
@maxspeed_fill_color_160: #33CB00;
@maxspeed_fill_color_170: #51CB00;
@maxspeed_fill_color_180: #70CB00;
@maxspeed_fill_color_190: #8ECB00;
@maxspeed_fill_color_200: #ADCB00;
@maxspeed_fill_color_210: #CBCB00;
@maxspeed_fill_color_220: #CBAD00;
@maxspeed_fill_color_230: #CB8E00;
@maxspeed_fill_color_240: #CB7000;
@maxspeed_fill_color_250: #CB5100;
@maxspeed_fill_color_260: #CB3300;
@maxspeed_fill_color_270: #CB1400;
@maxspeed_fill_color_280: #CB0007;
@maxspeed_fill_color_290: #CB0025;
@maxspeed_fill_color_300: #CB0044;
@maxspeed_fill_color_320: #CB0062;
@maxspeed_fill_color_340: #CB0081;
@maxspeed_fill_color_360: #CB009F;
@maxspeed_fill_color_380: #CB00BD;
#railway_line_fill[zoom>=9]::fill,
#railway_line_low[zoom<=7]::fill,
#railway_line_med[zoom>7][zoom<9]::fill {
["railway"="rail"]["usage"="main"]["service"=null],
[zoom>=8]["railway"="rail"]["usage"="branch"]["service"=null],
[zoom=10]["railway"="rail"]["usage"="industrial"]["service"=null],
[zoom>=11]["railway"="rail"]["usage"="industrial"],
[zoom>=13]["railway"="rail"]["usage"=null]["service"=null],
[zoom>=11]["railway"="rail"]["usage"=null]["service"="siding"],
[zoom>=11]["railway"="rail"]["usage"=null]["service"="crossover"],
[zoom>=12]["railway"="rail"]["usage"=null]["service"="yard"],
[zoom>=11]["railway"="rail"]["usage"=null]["service"="spur"],
[zoom>=10]["railway"="narrow_gauge"]["service"=null],
[zoom>=11]["railway"="narrow_gauge"]["service"="spur"],
[zoom>=11]["railway"="narrow_gauge"]["service"="siding"],
[zoom>=11]["railway"="narrow_gauge"]["service"="crossover"],
[zoom>=12]["railway"="narrow_gauge"]["service"="yard"],
[zoom>=9]["railway"="disused"]["disused_railway"="rail"]["service"=null],
[zoom>=11]["railway"="disused"]["disused_railway"="subway"]["service"=null],
[zoom>=11]["railway"="disused"]["disused_railway"="light_rail"]["service"=null],
[zoom>=12]["railway"="disused"]["disused_railway"="tram"]["service"=null],
[zoom>=13]["railway"="disused"],
[zoom>=9]["railway"="construction"]["construction_railway"="rail"]["usage"="main"]["service"=null],
[zoom>=9]["railway"="construction"]["construction_railway"="rail"]["usage"="branch"]["service"=null],
[zoom>=10]["railway"="construction"]["construction_railway"="subway"]["service"=null],
[zoom>=10]["railway"="construction"]["construction_railway"="light_rail"]["service"=null],
[zoom>=11]["railway"="construction"]["construction_railway"="tram"]["service"=null],
[zoom>=13]["railway"="construction"],
[zoom>=10]["railway"="subway"]["service"=null],
[zoom>=13]["railway"="subway"],
[zoom>=10]["railway"="light_rail"]["service"=null],
[zoom>=13]["railway"="light_rail"],
[zoom>=11]["railway"="tram"]["service"=null],
[zoom>=13]["railway"="tram"] {
[maxspeed>360] {
line-color: @maxspeed_fill_color_380;
}
[maxspeed<=360] {
line-color: @maxspeed_fill_color_360;
}
[maxspeed<=340] {
line-color: @maxspeed_fill_color_340;
}
[maxspeed<=320] {
line-color: @maxspeed_fill_color_320;
}
[maxspeed<=300] {
line-color: @maxspeed_fill_color_300;
}
[maxspeed<=290] {
line-color: @maxspeed_fill_color_290;
}
[maxspeed<=280] {
line-color: @maxspeed_fill_color_280;
}
[maxspeed<=270] {
line-color: @maxspeed_fill_color_270;
}
[maxspeed<=260] {
line-color: @maxspeed_fill_color_260;
}
[maxspeed<=250] {
line-color: @maxspeed_fill_color_250;
}
[maxspeed<=240] {
line-color: @maxspeed_fill_color_240;
}
[maxspeed<=230] {
line-color: @maxspeed_fill_color_230;
}
[maxspeed<=220] {
line-color: @maxspeed_fill_color_220;
}
[maxspeed<=210] {
line-color: @maxspeed_fill_color_210;
}
[maxspeed<=200] {
line-color: @maxspeed_fill_color_200;
}
[maxspeed<=190] {
line-color: @maxspeed_fill_color_190;
}
[maxspeed<=180] {
line-color: @maxspeed_fill_color_180;
}
[maxspeed<=170] {
line-color: @maxspeed_fill_color_170;
}
[maxspeed<=160] {
line-color: @maxspeed_fill_color_160;
}
[maxspeed<=150] {
line-color: @maxspeed_fill_color_150;
}
[maxspeed<=140] {
line-color: @maxspeed_fill_color_140;
}
[maxspeed<=130] {
line-color: @maxspeed_fill_color_130;
}
[maxspeed<=120] {
line-color: @maxspeed_fill_color_120;
}
[maxspeed<=110] {
line-color: @maxspeed_fill_color_110;
}
[maxspeed<=100] {
line-color: @maxspeed_fill_color_100;
}
[maxspeed<=90] {
line-color: @maxspeed_fill_color_90;
}
[maxspeed<=80] {
line-color: @maxspeed_fill_color_80;
}
[maxspeed<=70] {
line-color: @maxspeed_fill_color_70;
}
[maxspeed<=60] {
line-color: @maxspeed_fill_color_60;
}
[maxspeed<=50] {
line-color: @maxspeed_fill_color_50;
}
[maxspeed<=40] {
line-color: @maxspeed_fill_color_40;
}
[maxspeed<=30] {
line-color: @maxspeed_fill_color_30;
}
[maxspeed<=20] {
line-color: @maxspeed_fill_color_20;
}
[maxspeed<=10] {
line-color: @maxspeed_fill_color_10;
}
/* [disused!=null],
[construction!=null] {
comp-op: screen;
}*/
}
}
#railway_line_text[zoom>=9] {
[railway="rail"],
[railway="construction"][construction_railway="rail"],
[railway="disused"][disused_railway="rail"],
[zoom>=11][railway="narrow_gauge"],
[zoom>=11][railway="construction"][construction_railway="narrow_gauge"],
[zoom>=11][railway="disused"][disused_railway="narrow_gauge"],
[zoom>=12][railway="light_rail"],
[zoom>=12][railway="construction"][construction_railway="light_rail"],
[zoom>=12][railway="disused"][disused_railway="light_rail"],
[zoom>=12][railway="subway"],
[zoom>=12][railway="construction"][construction_railway="subway"],
[zoom>=12][railway="disused"][disused_railway="subway"],
[zoom>=13][railway="tram"],
[zoom>=13][railway="construction"][construction_railway="tram"],
[zoom>=13][railway="disused"][disused_railway="tram"] {
text-name: [label];
text-face-name: @bold-fonts;
text-size: 11;
text-placement: line;
text-spacing: 100;
text-min-distance: 30;
text-halo-radius: @text-halo-radius;
text-halo-fill: @text-halo-color;
}
}