This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
label.mss
126 lines (120 loc) · 3.1 KB
/
label.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
// --- admin labels ------------------------------
#country_label {
text-name: @name;
text-face-name: @serif_bold;
text-fill: #000;
text-halo-fill: @land;
text-halo-radius: 3;
text-halo-rasterizer: fast;
text-wrap-width: 80;
text-orientation: 6;
text-transform: lowercase;
text-character-spacing: -1;
text-line-spacing:-10;
[scalerank<=1] { text-size: 28; }
[scalerank=2] { text-size: 20; }
[scalerank=3] { text-size: 18; }
[scalerank>=4] { text-size: 13; }
[zoom>=4] {
[scalerank<=1] { text-size: 36; }
[scalerank=2] { text-size: 28; }
[scalerank=3] { text-size: 22; }
[scalerank>=4] { text-size: 17; }
}
}
// --- places ------------------------------------
#place_label[type='city'][localrank<=2]{
text-name: @name;
text-face-name: @sans_bold;
text-halo-fill: @land;
text-halo-radius: 3;
text-halo-rasterizer: fast;
text-size: 20;
text-transform:lowercase;
[scalerank<=2] {
text-size: 24;
text-face-name: @sans_black_italic;
[zoom>=6] { text-orientation: 8; }
[zoom>=8] { text-size: 28; }
[zoom>=10] { text-size: 32; }
[zoom>=14] { text-size: 36; }
}
[scalerank=3] {
[zoom>=8] {
text-size: 22;
text-orientation: 8;
text-face-name: @sans_black_italic;
}
[zoom>=10] { text-size: 24; }
[zoom>=14] { text-size: 26; }
}
[scalerank>=4][zoom>10] {
text-size: 20;
text-orientation: 6;
text-face-name: @sans_bold_italic;
}
}
#place_label[type='town'][localrank<=1][zoom>8],
#place_label[type='town'][localrank<=3][zoom>=11] {
text-name: @name;
text-face-name: @sans_black_italic;
text-halo-fill: @land;
text-halo-radius: 3;
text-halo-rasterizer: fast;
text-size: 16;
text-wrap-width: 80;
text-transform:lowercase;
[zoom>=12] { text-size: 20; }
[zoom>=13] { text-orientation: 4; }
[zoom>=14] { text-size: 24; }
}
#place_label[zoom>=11][type='hamlet'],
#place_label[zoom>=12][type='suburb'],
#place_label[zoom>=13][type='neighbourhood'],
#place_label[zoom>=13][type='village'] {
text-name: @name;
text-face-name: @sans_bold;
text-halo-fill: @land;
text-halo-radius: 3;
text-halo-rasterizer: fast;
text-size: 14;
text-line-spacing:-2;
text-wrap-width: 50;
text-transform:lowercase;
[zoom>=14][type='neighbourhood'],
[zoom>=14][type='village'] {
text-size: 18;
text-orientation: 5;
}
}
// --- pois ------------------------------------
#poi_label[scalerank=1][zoom>=14],
#poi_label[scalerank=2][zoom>=16],
#poi_label[scalerank=3][zoom>=17] {
[type='Aerodrome']{
text-name: "'[ ' + [ref] + ' ]'";
text-face-name: @sans_bold;
text-size: 20;
text-transform:uppercase;
}
// --- dots ---------
marker-width: 8;
marker-fill: #000;
marker-line-color: @land;
marker-line-width: 3;
// --- text ---------
text-name: @name;
text-face-name: @serif_bold;
text-size: 14;
text-halo-fill: @land;
text-halo-radius: 3;
text-halo-rasterizer: fast;
text-avoid-edges: true;
text-transform: lowercase;
text-wrap-width: 80;
text-placement-type: simple;
text-line-spacing: -8;
text-placements: NE,SE,NW,SW;
text-dx: 5;
text-dx: -5;
}