forked from gravitystorm/openstreetmap-carto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stations.mss
127 lines (122 loc) · 3.34 KB
/
stations.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
@station-color: #7981b0;
@station-text: darken(saturate(@station-color, 15%), 10%);
.stations {
[railway = 'subway_entrance'][zoom >= 18] {
marker-file: url('symbols/entrance.10.svg');
marker-placement: interior;
marker-fill: @transportation-icon;
marker-clip: false;
[zoom >= 19] {
text-name: [ref];
text-face-name: @book-fonts;
text-size: 10;
text-fill: @transportation-icon;
text-dy: 10;
text-halo-radius: @standard-halo-radius * 1.5;
text-halo-fill: @standard-halo-fill;
text-wrap-width: 0;
text-placement: interior;
}
}
[railway = 'station'][zoom >= 12] {
marker-file: url('symbols/square.svg');
marker-placement: interior;
marker-fill: @station-color;
marker-width: 4;
marker-clip: false;
[zoom >= 13] {
marker-width: 6;
}
[zoom >= 14] {
text-name: "[name]";
text-face-name: @bold-fonts;
text-size: 10;
text-fill: @station-text;
text-dy: 9;
text-halo-radius: @standard-halo-radius * 1.5;
text-halo-fill: @standard-halo-fill;
text-wrap-width: 30; // 3 em
text-line-spacing: -1.5; // -0.15 em
text-placement: interior;
}
[zoom >= 15] {
marker-width: 9;
text-size: 11;
text-wrap-width: 33; // 3 em
text-line-spacing: -1.65; // -0.15 em
text-dy: 10;
}
}
[railway = 'halt'] {
[zoom >= 13] {
marker-file: url('symbols/square.svg');
marker-placement: interior;
marker-fill: @station-color;
marker-width: 4;
marker-clip: false;
[zoom >= 15] {
marker-width: 6;
}
}
[zoom >= 15] {
text-name: "[name]";
text-face-name: @bold-fonts;
text-size: @standard-font-size;
text-fill: @station-text;
text-dy: 10;
text-halo-radius: @standard-halo-radius * 1.5;
text-halo-fill: @standard-halo-fill;
text-wrap-width: @standard-wrap-width;
text-line-spacing: @standard-line-spacing-size;
text-placement: interior;
}
}
[aerialway = 'station']::aerialway {
[zoom >= 13] {
marker-file: url('symbols/square.svg');
marker-placement: interior;
marker-fill: @station-color;
marker-width: 4;
marker-clip: false;
}
[zoom >= 15] {
marker-width: 6;
}
[zoom >= 14] {
text-name: "[name]";
text-face-name: @book-fonts;
text-size: @standard-font-size;
text-fill: @station-text;
text-dy: 10;
text-halo-radius: @standard-halo-radius * 1.5;
text-halo-fill: @standard-halo-fill;
text-wrap-width: @standard-wrap-width;
text-line-spacing: @standard-line-spacing-size;
text-placement: interior;
}
}
[railway = 'tram_stop'] {
[zoom >= 13] {
marker-file: url('symbols/square.svg');
marker-placement: interior;
marker-fill: @station-color;
marker-width: 4;
marker-clip: false;
[zoom >= 15] {
marker-width: 6;
}
}
[zoom >= 16] {
text-name: "[name]";
text-face-name: @book-fonts;
text-size: @standard-font-size;
text-fill: @station-text;
text-dy: 10;
text-halo-radius: @standard-halo-radius * 1.5;
text-halo-fill: @standard-halo-fill;
text-wrap-width: @standard-wrap-width;
text-line-spacing: @standard-line-spacing-size;
text-placement: interior;
}
}
}