-
Notifications
You must be signed in to change notification settings - Fork 8
/
nature.mss
77 lines (68 loc) · 1.54 KB
/
nature.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
#forest[zoom>=11] {
polygon-opacity:0.1;
polygon-fill:@green;
}
/* WATER */
#ocean,
#lakes[zoom<7][way_area>1e8],
#lakes[zoom>=7][zoom<9][way_area>1e7],
#lakes[zoom>=9][zoom<11][way_area>1e6],
#lakes[zoom>=11] {
polygon-opacity:1;
polygon-fill:@water;
}
#rivers[waterway="river"],
#rivers[waterway="canal"] {
[zoom<8][length>10000] {
line-color: @water;
line-width: 0.2;
}
}
#rivers[waterway="river"][zoom>=8],
#rivers[waterway="canal"][zoom>=8] {
line-color: @water;
[zoom>=8][zoom<14] { line-width:1; }
[zoom>=14] { line-width:2; }
}
#rivers[waterway="drain"][zoom>=14],
#rivers[waterway="ditch"][zoom>=14],
#rivers[waterway="stream"][zoom>=14] {
line-color: @water;
line-width:1;
}
#wlabels[zoom>=6] {
text-face-name: @sans_italic;
text-name: [name];
text-size: 10;
text-character-spacing: 1.1;
text-fill: darken(@water, 40%);
text-placement: line;
[zoom<12] {
text-size: 9;
text-dy: 7;
}
text-allow-overlap: false;
text-min-distance: 100;
text-spacing: 200;
}
#wolabels[zoom=10][way_area>1e7],
#wolabels[zoom=11][way_area>1e6],
#wolabels[zoom>=12] {
text-face-name: @sans_italic;
text-name: [name];
text-size: 9;
[zoom>=12] { text-size: 11; }
text-fill: darken(@water, 40%);
text-placement: interior;
text-allow-overlap: false;
}
#plabels[zoom>=12][zoom<14][way_area>1e6],
#plabels[zoom>=14][way_area>1e5] {
text-face-name: @sans_italic;
text-name: [name];
text-size: 9;
text-fill: darken(@green, 30%);
text-placement: interior;
text-allow-overlap: false;
text-wrap-width: 10;
}