-
Notifications
You must be signed in to change notification settings - Fork 2
/
place.mss
86 lines (83 loc) · 2.25 KB
/
place.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
/*
* This file is part of brighmed, a style for use with Meddo vector tiles
* @author Paul Norman <[email protected]>
* @copyright 2016 Paul Norman, MIT license
*/
#place {
[class = 'city'][zoom < 8] {
shield-file: url("symbols/place/place-6.svg");
shield-unlock-image: true;
shield-name: '[name]';
shield-size: 14;
shield-face-name: @book-fonts;
shield-placement: point;
shield-fill: #333;
shield-halo-fill: rgba(255, 255, 255, .8);
shield-halo-radius: 1.5;
shield-wrap-width: 14*7;
shield-line-spacing: 14*@line-spacing-adjust;
shield-text-dy: 4;
shield-text-dx: 4;
shield-margin: 10;
}
[class = 'city'][zoom >= 8][zoom < 17],
[class = 'town'][zoom >= 9],
[class = 'village'][zoom >= 12] {
text-name: '[name]';
text-face-name: @book-fonts;
text-fill: #333;
text-size: 14;
text-halo-fill: rgba(255, 255, 255, .8);
text-halo-radius: 1.5;
text-wrap-width: 14*7;
text-wrap-before: true;
text-line-spacing: 14*@line-spacing-adjust;
text-margin: 10;
[class = 'city'][zoom >= 10],
[class = 'town'][zoom >= 12],
[class = 'village'][zoom >= 14] {
text-size: 17;
text-wrap-width: 17*7;
text-line-spacing: 17*@line-spacing-adjust;
}
[class = 'city'][zoom >= 11],
[class = 'town'][zoom >= 13],
[class = 'village'][zoom >= 14] {
text-size: 18;
text-wrap-width: 18*7;
text-line-spacing: 18*@line-spacing-adjust;
}
[class = 'city'][zoom >= 12],
[class = 'town'][zoom >= 14],
[class = 'village'][zoom >= 15] {
text-size: 20;
text-wrap-width: 20*7;
text-line-spacing: 20*@line-spacing-adjust;
}
}
// TODO: hamlet
[class = 'suburb'][zoom >= 13],
[class = 'suburb'][zoom >= 13] {
text-name: '[name]';
text-face-name: @bold-fonts;
text-fill: #633;
text-transform: uppercase;
text-size: 10;
text-halo-fill: rgba(255, 255, 255, .8);
text-halo-radius: 1.5;
text-wrap-before: true;
text-wrap-width: 14*7;
text-line-spacing: 14*@line-spacing-adjust;
[zoom >= 14] {
text-size: 11;
}
[zoom >= 15] {
text-size: 12;
text-character-spacing: 0.5;
}
[zoom >= 16] {
text-size: 14;
text-character-spacing: 1;
}
}
}