| |
1 @standard-font-size: 10; |
| |
2 @standard-wrap-width: 30; // 3 em |
| |
3 @standard-line-spacing-size: -1.5; // -0.15 em |
| |
4 @standard-font: @regular-font; |
| |
5 @traffic-blue: #005eb8; |
| |
6 @railway-name-color: #644d70; |
| |
7 @aerodrome-name-color: #463d70; |
| |
8 |
| |
9 #stations[zoom >= 15] |
| |
10 { |
| |
11 [feature = 'railway_station'], |
| |
12 [feature = 'railway_halt'] |
| |
13 { |
| |
14 marker-file: url('symbols/train-station.svg'); |
| |
15 } |
| |
16 [feature = 'amenity_bus_station'] |
| |
17 { |
| |
18 marker-file: url('symbols/bus-station.svg'); |
| |
19 } |
| |
20 [feature = 'aeroway_aerodrome'] |
| |
21 { |
| |
22 marker-file: url('symbols/aerodrome.svg'); |
| |
23 } |
| |
24 marker-clip: false; |
| |
25 text-name: "[bilingual_name]"; |
| |
26 text-size: @standard-font-size; |
| |
27 text-wrap-width: @standard-wrap-width; |
| |
28 text-line-spacing: @standard-line-spacing-size; |
| |
29 text-fill: @traffic-blue; |
| |
30 text-dy: 11; |
| |
31 text-face-name: @bold-font; |
| |
32 text-halo-radius: @standard-halo-radius; |
| |
33 text-halo-fill: @standard-halo-fill; |
| |
34 } |
| |
35 |
| |
36 #train-stations |
| |
37 { |
| |
38 [zoom >= 12] |
| |
39 { |
| |
40 text-name: "[ref]"; |
| |
41 [zoom >= 14] |
| |
42 { |
| |
43 text-name: "[bilingual_name]"; |
| |
44 } |
| |
45 text-size: 10; |
| |
46 text-wrap-width: @standard-wrap-width; |
| |
47 text-line-spacing: @standard-line-spacing-size; |
| |
48 text-fill: white; |
| |
49 text-clip: true; |
| |
50 text-placement-type: simple; |
| |
51 text-placements: E,NE,SE,W,NW,SW; |
| |
52 [zoom >= 16] { text-size: 11; } |
| |
53 [zoom >= 17] { text-size: 12; } |
| |
54 [zoom >= 18] { text-size: 13; } |
| |
55 text-face-name: "FreeSans Bold"; |
| |
56 text-halo-radius: 1.5 * @standard-halo-radius; |
| |
57 text-halo-fill: blue; |
| |
58 /* |
| |
59 [zoom >= 16] |
| |
60 { |
| |
61 text-transform: uppercase; |
| |
62 } |
| |
63 */ |
| |
64 } |
| |
65 } |
| |
66 |
| |
67 #train-sites |
| |
68 { |
| |
69 [zoom >= 15] |
| |
70 { |
| |
71 text-name: "[ref]"; |
| |
72 [zoom >= 16] |
| |
73 { |
| |
74 text-name: "[bilingual_name]"; |
| |
75 } |
| |
76 text-size: @standard-font-size; |
| |
77 text-wrap-width: @standard-wrap-width; |
| |
78 text-line-spacing: @standard-line-spacing-size; |
| |
79 text-fill: @railway-name-color; |
| |
80 text-clip: false; |
| |
81 text-placement-type: simple; |
| |
82 text-placements: E,NE,SE,W,NW,SW; |
| |
83 [zoom >= 16] { text-size: 11; } |
| |
84 [zoom >= 17] { text-size: 12; } |
| |
85 [zoom >= 18] { text-size: 13; } |
| |
86 text-face-name: "FreeSans Bold"; |
| |
87 text-halo-radius: 0.75 * @standard-halo-radius; |
| |
88 text-halo-fill: @standard-halo-fill; |
| |
89 } |
| |
90 } |
| |
91 |
| |
92 #train-milestones |
| |
93 { |
| |
94 [zoom >= 16] |
| |
95 { |
| |
96 text-name: "[position]"; |
| |
97 text-size: @standard-font-size; |
| |
98 text-wrap-width: @standard-wrap-width; |
| |
99 text-line-spacing: @standard-line-spacing-size; |
| |
100 text-fill: @railway-name-color; |
| |
101 text-clip: false; |
| |
102 text-placement-type: simple; |
| |
103 text-placements: E,NE,SE,W,NW,SW; |
| |
104 [zoom >= 17] { text-size: 11; } |
| |
105 [zoom >= 18] { text-size: 12; } |
| |
106 [zoom >= 19] { text-size: 13; } |
| |
107 text-face-name: "FreeSans Bold"; |
| |
108 text-halo-radius: @standard-halo-radius; |
| |
109 text-halo-fill: @standard-halo-fill; |
| |
110 } |
| |
111 } |
| |
112 |
| |
113 @aerodrome-color: #dedced; |
| |
114 #aerodrome |
| |
115 { |
| |
116 polygon-fill: @aerodrome-color; |
| |
117 [zoom >= 17] |
| |
118 { |
| |
119 line-color: saturate(darken(@aerodrome-color, 20%), 20%); |
| |
120 } |
| |
121 } |
| |
122 |
| |
123 #aerodrome-name |
| |
124 { |
| |
125 text-name: "[ref]"; |
| |
126 [zoom >= 12] |
| |
127 { |
| |
128 text-name: "[bilingual_name]"; |
| |
129 } |
| |
130 text-size: @standard-font-size; |
| |
131 text-wrap-width: @standard-wrap-width; |
| |
132 text-line-spacing: @standard-line-spacing-size; |
| |
133 text-clip: false; |
| |
134 text-fill: @aerodrome-name-color; |
| |
135 text-face-name: @bold-font; |
| |
136 text-halo-radius: @standard-halo-radius; |
| |
137 text-halo-fill: @standard-halo-fill; |
| |
138 } |