-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtransit.mss
74 lines (71 loc) · 2.39 KB
/
transit.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
/*
* This file is part of brighmed, a style for use with Meddo vector tiles
* @author Paul Norman <[email protected]>
* @copyright 2016 Paul Norman, MIT license
*/
#transit_stop {
// Both true and false are needed to match the MSS below
[mode = 'rail'][station = false][zoom >= 15],
[mode = 'rail'][station = true][zoom >= 15],
[mode = 'tram'][zoom >= 15],
[mode = 'bus'][station = false][zoom >= 17],
[mode = 'bus'][station = true][zoom >= 15],
[mode = 'ferry'][zoom >= 15],
[mode = 'taxi'][zoom >= 17] {
shield-unlock-image: true;
shield-name: '[name]';
// Only show labels at z16+, except for ferries.
[zoom < 16] {
shield-name: '';
[mode = 'ferry'] {
shield-name: '[name]';
}
}
shield-size: 11;
shield-face-name: @book-fonts;
shield-placement: point;
shield-fill: #666;
shield-halo-fill: rgba(255, 255, 255, .8);
shield-halo-radius: 1.5;
shield-wrap-width: 11*7;
shield-line-spacing: 11*@line-spacing-adjust;
shield-text-dy: 10;
shield-margin: 16;
shield-clip: false;
// A second pass at label placement gets labels where labels+text wouldn't fit
fallback/marker-fill: #666;
fallback/marker-clip: false;
[mode = 'rail'][station = false] {
shield-file: url("symbols/maki/rail-11.svg");
fallback/marker-file: url("symbols/maki/rail-11.svg");
}
[mode = 'rail'][station = true] {
shield-file: url("symbols/maki/rail-15.svg");
fallback/marker-file: url("symbols/maki/rail-15.svg");
}
[mode = 'tram'] {
shield-file: url("symbols/maki/rail-light-11.svg");
fallback/marker-file: url("symbols/maki/rail-light-11.svg");
[zoom >= 17] {
shield-file: url("symbols/maki/rail-light-15.svg");
fallback/marker-file: url("symbols/maki/rail-light-15.svg");
}
}
[mode = 'bus'] [station = false] {
shield-file: url("symbols/maki/bus-11.svg");
fallback/marker-file: url("symbols/maki/bus-11.svg");
}
[mode = 'bus'] [station = true] {
shield-file: url("symbols/maki/bus-15.svg");
fallback/marker-file: url("symbols/maki/bus-15.svg");
}
[mode = 'ferry'] {
shield-file: url("symbols/maki/ferry-15.svg");
fallback/marker-file: url("symbols/maki/ferry-15.svg");
}
[mode = 'taxi'] {
shield-file: url("symbols/taxi.svg");
fallback/marker-file: url("symbols/taxi.svg");
}
}
}