forked from OpenRailwayMap/OpenRailwayMap-CartoCSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_protection.mss
76 lines (71 loc) · 2.72 KB
/
train_protection.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
@text-halo-color: white;
@text-halo-radius: 1;
@construction_dashes: 9,9;
@no_train_protection_color: black;
@pzb_color: #ffb900;
@lzb_color: red;
@atb_color: #ff8c00;
@etcs_color: blue;
@etcs_construction_color: #87CEFA;
/* Casing of railway lines under construction should be dahsed as well. */
#railway_line_casing[zoom>=9]["railway"="construction"]::casing {
["railway"="construction"] {
line-dasharray: @construction_dashes;
}
}
#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"="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"] {
["pzb"="no"]["lzb"="no"]["etcs"="no"],
["atb"="no"]["etcs"="no"] {
line-color: @no_train_protection_color;
}
["pzb"="yes"] {
line-color: @pzb_color;
}
["lzb"="yes"] {
line-color: @lzb_color;
}
["atb"="yes"],
["atb_eg"="yes"],
["atb_ng"="yes"],
["atb_vv"="yes"] {
line-color: @atb_color;
}
["etcs"!="no"] {
line-color: @etcs_color;
}
["construction_etcs"!="no"] {
line-color: @etcs_construction_color;
}
["railway"="construction"] {
line-dasharray: @construction_dashes;
}
}
}