-
Notifications
You must be signed in to change notification settings - Fork 2
/
land.mss
127 lines (120 loc) · 2.82 KB
/
land.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
127
/*
* 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
*/
/* Landuse, landcover, whatever you want to call it */
@national-park-color: #447702; // lch(45, 60, 125)
#park {
::fill {
polygon-fill: @national-park-color;
opacity: .05;
comp-op: darken;
}
::ring {
a/line-width: 0.8;
a/line-offset: -0.4;
a/line-color: @national-park-color;
a/line-opacity: 0.15;
a/line-join: round;
a/line-cap: round;
b/line-width: 1.6;
b/line-offset: -0.8;
b/line-color: @national-park-color;
b/line-opacity: 0.15;
b/line-join: round;
b/line-cap: round;
[zoom >= 9] {
a/line-width: 1;
a/line-offset: -0.5;
b/line-width: 2.2;
b/line-offset: -1.1;
}
[zoom >= 10] {
a/line-width: 1.8;
a/line-offset: -0.9;
b/line-width: 4;
b/line-offset: -2;
}
[zoom >= 14] {
b/line-width: 6;
b/line-offset: -3;
}
}
}
#landcover_name {
[class = 'national_park'],
[class = 'nature_reserve'] {
text-name: "[name]";
text-face-name: @book-fonts;
text-fill: @national-park-color;
text-size: 14;
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;
}
}
#landcover {
[class = 'wood'][zoom >= 5] {
polygon-fill: #d4e2c0;
}
[class = 'park'][zoom >= 11] {
polygon-fill: #e4efd3;
}
}
#landuse {
[class = 'hospital'][zoom >= 13] {
polygon-fill: #ffdff0;
}
[class = 'school'][zoom >= 13],
[class = 'college'][zoom >= 11],
[class = 'university'][zoom >= 11] {
polygon-fill: #ede5f5;
}
}
[class = 'retail'][zoom >= 13],
[class = 'commercial'][zoom >= 13],
[class = 'cemetery'][zoom >= 13],
[class = 'industrial'][zoom >= 13],
[class = 'railway'][zoom >= 13] {
#landcover_name {
text-name: '[name]';
text-face-name: @book-fonts;
text-size: 13;
text-halo-fill: rgba(255, 255, 255, .8);
text-halo-radius: 1.5;
text-wrap-width: 13*7;
text-wrap-before: true;
text-line-spacing: 13*@line-spacing-adjust;
text-margin: 10;
[class = 'retail'],
[class = 'commercial'] {
text-fill: #8d795c;
}
[class = 'industrial'],
[class = 'railway'] {
text-fill: #857c5c; //lch(52,19,95);
}
[class = 'cemetery'] {
text-fill: #7d7e5f;
}
}
#landuse {
[class = 'retail'],
[class = 'commercial'] {
polygon-fill: #f8e6ce; //lch(92,14,80)
}
[class = 'industrial'],
[class = 'railway'] {
polygon-fill: #f1e8cd; //lch(92,14,95)
}
[class = 'cemetery'] {
polygon-fill: #e9ead1;
[zoom >= 15] {
polygon-pattern-file: url('symbols/patterns/cemetery.svg');
}
}
}
}