-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlabels.mss
79 lines (75 loc) · 1.67 KB
/
labels.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
// Road labels
#road_label[zoom>=16] {
text-placement: line;
text-placement-type: simple;
text-align: right;
text-allow-overlap: false;
text-transform: uppercase;
text-face-name: @sans;
text-name: @name;
text-size: 8;
text-wrap-width: 150;
text-margin: 250;
text-repeat-distance: 150;
text-min-path-length: 50;
text-character-spacing: 2;
text-fill: @text;
text-opacity: 0.85;
[zoom>=17] { text-size: 10; text-margin: 75; text-character-spacing: 3;}
}
// Water labels
#marine_label {
text-name: @name;
text-face-name: @sans;
text-fill: @text;
text-size: 12;
text-halo-fill: @water;
text-halo-radius: 1;
text-wrap-before: true;
text-wrap-width: 90;
[labelrank=1] {
text-size: 18;
}
}
#water_label {
[zoom<=13],
[zoom>=14][area>500000],
[zoom>=16][area>10000],
[zoom>=17] {
text-name: @name;
text-face-name: @sans;
text-fill: @text;
text-size: 12;
text-halo-fill: @water;
text-halo-radius: 1;
text-wrap-width: 60;
text-wrap-before: true;
text-avoid-edges: true;
}
}
#waterway_label[type='river'][zoom>=13],
#waterway_label[type='canal'][zoom>=14],
#waterway_label[type='stream'][zoom>=15] {
text-name: @name;
text-face-name: @sans;
text-fill: @text;
text-min-distance: 60;
text-size: 10;
text-halo-fill: @water;
text-halo-radius: 1;
text-wrap-before: true;
text-avoid-edges: true;
text-placement: line;
}
#poi_label[maki='park'][zoom>=16][scalerank<=2] {
text-face-name: @sans;
text-allow-overlap: false;
text-name: @name;
text-size: 12;
text-line-spacing: 1;
text-min-distance: 50;
text-wrap-width: 50;
text-halo-fill: @land;
text-halo-radius: 1;
text-fill: @text;
}