-
Notifications
You must be signed in to change notification settings - Fork 6
/
waterways.mss
118 lines (111 loc) · 2.36 KB
/
waterways.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
Map {
background-color: @water;
buffer-size: 256;
}
#waterway_network[zoom>=5][zoom<=12][navigable='yes'] {
line-color: @navigable_high;
[zoom>=11] {
line-color: @navigable_medium;
}
[zoom=5] {
line-width: 0.5;
}
[zoom=6] {
line-width: 1;
}
[zoom=7] {
line-width: 2;
}
[zoom=8] {
line-width: 3;
}
[zoom=9] {
[type='canal'] { line-width: 4; }
[type='river'] { line-width: 3; }
}
[zoom=10] {
[type='canal'] { line-width: 5; }
[type='river'] { line-width: 4; }
}
[zoom=11] {
[type='canal'] { line-width: 6; }
[type='river'] { line-width: 5; }
}
[zoom=12] {
[type='canal'] { line-width: 7; }
[type='river'] { line-width: 6; }
}
}
#waterway_network_high[zoom>=13] {
line-color: @water;
[navigable='yes'] {
line-color: @navigable;
}
[type='stream'] { line-width: 1; }
[type='canal'] { line-width: 4; }
[type='river'] { line-width: 6; }
[zoom>=15] {
[type='stream'] { line-width: 2; }
[type='canal'] { line-width: 6; }
[type='river'] { line-width: 8; }
}
}
/* ================================================================== */
/* WATER AREAS
/* ================================================================== */
#water[zoom>5],
#landuse[type='basin'][zoom>=13] {
polygon-fill: @water;
[navigable='yes'] { polygon-fill: @navigable;}
}
#navigable_water[zoom>=13] {
::bridge[bridge='yes'] {
line-color: @navigable * 0.8;
line-width: 2;
}
polygon-fill: @navigable;
}
/* ================================================================== */
/* MOORING
/* ================================================================== */
#piers::outline[zoom>=14][mooring='yes'] {
line-color: @mooring;
line-width: 3;
line-cap: round;
[zoom>16] {
line-width: 5;
}
}
#piers[zoom>=14] {
line-cap: butt;
line-color: @land;
line-width: 2;
[zoom>16] {
line-width: 3;
}
}
#piers_polygons[zoom>=14] {
polygon-fill: @land;
}
#groyne[zoom>=14] {
line-cap: butt;
line-color: @land;
line-width: 1;
[zoom>16] {
line-width: 2;
}
}
/* ================================================================== */
/* DAMS
/* ================================================================== */
#dams[zoom>=14] {
line-cap: butt;
line-color: @land;
line-width: 3;
[zoom>16] {
line-width: 4;
}
}
#dams_polygons[zoom>=14] {
polygon-fill: @land;
}