Sat, 26 Sep 2020 01:31:37 +0300
added square.svg from osm-carto
0 | 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 | { | |
6
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
38 | [zoom >= 9][zoom < 11][subway = 0][network = 'FI:national'], |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
39 | [zoom >= 10][zoom < 12][subway = 0][network = 'FI:regional'], |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
40 | [zoom >= 13][zoom < 15][subway = 1], |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
41 | [zoom >= 13][zoom < 15][network = 'FI:local'], |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
42 | { |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
43 | marker-file: url('symbols/square.svg'); |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
44 | marker-fill: #354ba3; |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
45 | [subway = 1] |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
46 | { |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
47 | marker-fill: #a36c35; |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
48 | } |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
49 | marker-width: 6; |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
50 | marker-clip: false; |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
51 | } |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
52 | [zoom >= 11][subway = 0][network = 'FI:national'], |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
53 | [zoom >= 12][subway = 0][network = 'FI:regional'], |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
54 | [zoom >= 15] |
0 | 55 | { |
56 | text-name: "[ref]"; | |
6
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
57 | [zoom >= 13] |
0 | 58 | { |
59 | text-name: "[bilingual_name]"; | |
60 | } | |
61 | text-size: 10; | |
62 | text-wrap-width: @standard-wrap-width; | |
63 | text-line-spacing: @standard-line-spacing-size; | |
64 | text-fill: white; | |
65 | text-clip: true; | |
66 | text-placement-type: simple; | |
67 | text-placements: E,NE,SE,W,NW,SW; | |
68 | [zoom >= 16] { text-size: 11; } | |
69 | [zoom >= 17] { text-size: 12; } | |
70 | [zoom >= 18] { text-size: 13; } | |
71 | text-face-name: "FreeSans Bold"; | |
72 | text-halo-radius: 1.5 * @standard-halo-radius; | |
6
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
73 | text-halo-fill: #354ba3; |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
74 | [subway = 1] |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
75 | { |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
76 | text-halo-fill: #a36c35; |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
77 | } |
0 | 78 | /* |
79 | [zoom >= 16] | |
80 | { | |
81 | text-transform: uppercase; | |
82 | } | |
83 | */ | |
84 | } | |
85 | } | |
86 | ||
87 | #train-sites | |
88 | { | |
89 | [zoom >= 15] | |
90 | { | |
91 | text-name: "[ref]"; | |
92 | [zoom >= 16] | |
93 | { | |
94 | text-name: "[bilingual_name]"; | |
95 | } | |
96 | text-size: @standard-font-size; | |
97 | text-wrap-width: @standard-wrap-width; | |
98 | text-line-spacing: @standard-line-spacing-size; | |
99 | text-fill: @railway-name-color; | |
100 | text-clip: false; | |
101 | text-placement-type: simple; | |
102 | text-placements: E,NE,SE,W,NW,SW; | |
103 | [zoom >= 16] { text-size: 11; } | |
104 | [zoom >= 17] { text-size: 12; } | |
105 | [zoom >= 18] { text-size: 13; } | |
106 | text-face-name: "FreeSans Bold"; | |
6
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
107 | text-halo-radius: @standard-halo-radius; |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
108 | text-halo-fill: white; |
0 | 109 | } |
110 | } | |
111 | ||
112 | #train-milestones | |
113 | { | |
114 | [zoom >= 16] | |
115 | { | |
116 | text-name: "[position]"; | |
117 | text-size: @standard-font-size; | |
118 | text-wrap-width: @standard-wrap-width; | |
119 | text-line-spacing: @standard-line-spacing-size; | |
120 | text-fill: @railway-name-color; | |
121 | text-clip: false; | |
122 | text-placement-type: simple; | |
123 | text-placements: E,NE,SE,W,NW,SW; | |
124 | [zoom >= 17] { text-size: 11; } | |
125 | [zoom >= 18] { text-size: 12; } | |
126 | [zoom >= 19] { text-size: 13; } | |
127 | text-face-name: "FreeSans Bold"; | |
6
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
128 | text-halo-radius: 1.25 * @standard-halo-radius; |
0575190fa5fc
better train station rendering
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
129 | text-halo-fill: white; |
0 | 130 | } |
131 | } | |
132 | ||
133 | @aerodrome-color: #dedced; | |
134 | #aerodrome | |
135 | { | |
136 | polygon-fill: @aerodrome-color; | |
137 | [zoom >= 17] | |
138 | { | |
139 | line-color: saturate(darken(@aerodrome-color, 20%), 20%); | |
140 | } | |
141 | } | |
142 | ||
143 | #aerodrome-name | |
144 | { | |
145 | text-name: "[ref]"; | |
146 | [zoom >= 12] | |
147 | { | |
148 | text-name: "[bilingual_name]"; | |
149 | } | |
150 | text-size: @standard-font-size; | |
151 | text-wrap-width: @standard-wrap-width; | |
152 | text-line-spacing: @standard-line-spacing-size; | |
153 | text-clip: false; | |
154 | text-fill: @aerodrome-name-color; | |
155 | text-face-name: @bold-font; | |
156 | text-halo-radius: @standard-halo-radius; | |
157 | text-halo-fill: @standard-halo-fill; | |
158 | } |