Sat, 26 Sep 2020 00:55:46 +0300
render commuter train refs
0 | 1 | @place-halo-fill: rgba(255,255,255,60%); |
2 | @place-halo-radius: 1.5; | |
3 | ||
4 | @landcover-font-size: 10; | |
5 | @landcover-wrap-width-size: 30; // 3 em | |
6 | @landcover-line-spacing-size: -1.5; // -0.15 em | |
7 | @landcover-font-size-big: 12; | |
8 | @landcover-wrap-width-size-big: 36; // 3 em | |
9 | @landcover-line-spacing-size-big: -1.8; // -0.15 em | |
10 | @landcover-font-size-bigger: 15; | |
11 | @landcover-wrap-width-size-bigger: 45; // 3 em | |
12 | @landcover-line-spacing-size-bigger: -2.25; // -0.15 em | |
13 | @landcover-face-name: @oblique-fonts; | |
14 | ||
15 | #place-major[zoom >= 10], | |
16 | #place-major[place='city'] { | |
17 | text-name: "[bilingual_name]"; | |
18 | text-size: 10; | |
19 | [zoom >= 11] { text-size: 11; } | |
20 | [zoom >= 12] { text-size: 12; } | |
21 | [zoom >= 13] { text-size: 13; } | |
22 | [zoom >= 14] { text-size: 14; } | |
23 | [zoom >= 15] { text-size: 15; } | |
24 | text-fill: #000; | |
25 | text-face-name: @place-font; | |
26 | [place='city'][zoom >= 10], | |
27 | [zoom >= 12] { | |
28 | text-face-name: @place-font-bold; | |
29 | } | |
30 | [place='city'][zoom >= 12], | |
31 | [zoom >= 13] { | |
32 | text-transform: uppercase; | |
33 | } | |
3
89b6a7562889
fix rendering of Helsinki
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
34 | [capital = 'yes'] { |
89b6a7562889
fix rendering of Helsinki
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
35 | [zoom >= 8] { |
89b6a7562889
fix rendering of Helsinki
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
36 | text-transform: uppercase; |
89b6a7562889
fix rendering of Helsinki
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
37 | } |
89b6a7562889
fix rendering of Helsinki
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
38 | text-face-name: @place-font-bold; |
89b6a7562889
fix rendering of Helsinki
Teemu Piippo <teemu@hecknology.net>
parents:
0
diff
changeset
|
39 | } |
0 | 40 | text-halo-radius: @place-halo-radius; |
41 | text-halo-fill: @place-halo-fill; | |
42 | text-clip: false; | |
43 | text-placement-type: simple; | |
44 | text-placements: E,NE,SE,W,NW,SW; | |
45 | } | |
46 | ||
47 | #place-medium { | |
48 | text-name: "[bilingual_name]"; | |
49 | text-size: 10; | |
50 | [zoom >= 13] { text-size: 11; } | |
51 | [zoom >= 14] { text-size: 12; } | |
52 | [zoom >= 15] { text-size: 14; } | |
53 | [zoom >= 16] { text-size: 15; } | |
54 | [zoom >= 17] { text-size: 17; } | |
55 | text-fill: #000; | |
56 | text-face-name: @place-font; | |
57 | [zoom >= 13] { | |
58 | text-face-name: @place-font-bold; | |
59 | } | |
60 | text-halo-radius: @place-halo-radius; | |
61 | text-halo-fill: @place-halo-fill; | |
62 | text-clip: false; | |
63 | text-placement-type: simple; | |
64 | text-placements: E,NE,SE,W,NW,SW; | |
65 | } | |
66 | ||
67 | #poi-name, | |
68 | #poi-name-medium, | |
69 | #poi-name-minor, | |
70 | #place-minor | |
71 | { | |
72 | text-name: "[bilingual_name]"; | |
73 | text-size: 10; | |
74 | [zoom >= 15] { text-size: 11; } | |
75 | [zoom >= 16] { text-size: 12; } | |
76 | [zoom >= 17] { text-size: 13; } | |
77 | [zoom >= 18] { text-size: 14; } | |
78 | text-fill: #000; | |
79 | text-face-name: @place-font; | |
80 | #place-minor[natural = 0][zoom >= 17] { | |
81 | text-face-name: @place-font-bold; | |
82 | } | |
83 | [natural = 1] { | |
84 | text-face-name: @natural-font; | |
85 | } | |
86 | text-halo-radius: @place-halo-radius; | |
87 | text-halo-fill: @place-halo-fill; | |
88 | text-clip: false; | |
89 | text-placement-type: simple; | |
90 | text-placements: E,NE,SE,W,NW,SW; | |
91 | } | |
92 | ||
93 | #place-natural | |
94 | { | |
95 | [zoom >= 4][way_pixels > 3000], | |
96 | [zoom >= 16], | |
97 | [zoom >= 11][way_pixels > 3000], | |
98 | [zoom >= 17] { | |
99 | text-name: "[bilingual_name]"; | |
100 | text-fill: #000; | |
101 | text-size: 10; | |
102 | text-wrap-width: @landcover-wrap-width-size; | |
103 | text-line-spacing: @landcover-line-spacing-size; | |
104 | [way_pixels > 12000] { | |
105 | text-size: @landcover-font-size-big; | |
106 | text-wrap-width: @landcover-wrap-width-size-big; | |
107 | text-line-spacing: @landcover-line-spacing-size-big; | |
108 | } | |
109 | [way_pixels > 48000] { | |
110 | text-size: @landcover-font-size-bigger; | |
111 | text-wrap-width: @landcover-wrap-width-size-bigger; | |
112 | text-line-spacing: @landcover-line-spacing-size-bigger; | |
113 | } | |
114 | text-face-name: @natural-font; | |
115 | text-halo-radius: @place-halo-radius; | |
116 | text-halo-fill: @place-halo-fill; | |
117 | } | |
118 | } |