forked from Zverik/veloroad
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rails.mss
70 lines (63 loc) · 1.65 KB
/
rails.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
#subway[zoom>=12][zoom<14] {
marker-file: url(icons/subway.svg);
}
#subway[zoom>=14] {
shield-file: url(icons/subway.svg);
// shield-name: [name];
shield-face-name: @sans_bold;
// shield-fill: black;
shield-size: 8;
shield-text-dx: 8;
shield-text-dy: 8;
shield-placement-type: simple;
shield-placements: "E,W,N,S,NE,NW,SW,SE";
shield-allow-overlap: false;
shield-halo-radius: 1.5;
shield-halo-fill: fadeout(white, 50%);
shield-unlock-image: true;
}
#stations[zoom>=11] {
[railway="station"][zoom>=11] {
marker-file: url(icons/station.svg);
marker-transform: rotate([angle], 0, 0);
marker-ignore-placement: true;
}
[railway="halt"][zoom>=11] {
marker-file: url(icons/halt.svg);
marker-transform: rotate([angle], 0, 0);
marker-ignore-placement: true;
}
[railway="station"][zoom>=11],
[railway="halt"][zoom>=12] {
[len<=12], [zoom>=14] {
text-name: [name];
text-face-name: @sans;
text-fill: @gray;
text-size: 11;
text-dx: 7;
text-dy: 7;
text-placement-type: simple;
text-placements: "E,W,N,S,NE,NW,SW,SE";
[angle<45],[angle>=135][angle<225],[angle>=315][angle<405] {
text-placements: "N,S,E,W,NE,NW,SW,SE";
}
text-allow-overlap: false;
text-halo-radius: 1.5;
text-halo-fill: fadeout(white, 50%);
}
}
}
.railway[railway="rail"][zoom>=6] {
casing/line-width: 2.5;
casing/line-color: @gray;
dash/line-width: 1.5;
dash/line-color: white;
dash/line-dasharray: 8;
}
.railway[railway="narrow_gauge"][zoom>=10] {
casing/line-width: 1.2;
casing/line-color: @gray;
dash/line-width: 5;
dash/line-color: @gray;
dash/line-dasharray: 1, 10;
}