This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
style.mss
133 lines (125 loc) · 3.39 KB
/
style.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
128
129
130
131
132
133
// PENCIL
// Much of the design of this style is handled by image textures.
// These were drawn by hand on paper, scanned, and tweaked in
// image editing software.
Map {
background-image:url(img/natural_paper.png);
}
#water {
// The ::dark and ::light attachments create a subtle inner-
// shadow on water bodies for added contrast.
::dark { polygon-fill: #aaa; }
::light14[zoom<=15],
::light15[zoom=16],
::light16[zoom=17],
::light17[zoom>=18] {
polygon-fill: #fff;
polygon-gamma: 0.5;
image-filters: agg-stack-blur(8,8);
image-filters-inflate: true;
}
::light15[zoom=16] { image-filters: agg-stack-blur(16,16); }
::light16[zoom=17] { image-filters: agg-stack-blur(32,32); }
::light17[zoom>=18] { image-filters: agg-stack-blur(64,64); }
// Pencil shading texture:
::texture {
comp-op: multiply;
polygon-pattern-alignment: global;
polygon-pattern-file:url(img/water.png);
}
}
#landuse {
opacity: 0.5;
comp-op: multiply;
[class='park'],
[class='cemetery'] {
polygon-pattern-opacity: 0.5;
polygon-pattern-file:url(img/shade_medium.png);
[zoom<=15] {
line-opacity: 0.4;
line-width: 1.2;
[zoom=15] { line-width: 2; }
}
[zoom>=16] { line-pattern-file:url(img/line_shade_22.png); }
}
}
#aeroway['mapnik::geometry_type'=2][zoom>=12] {
comp-op: multiply;
opacity:0.5;
[type='taxiway'] {
[zoom=13] { line-pattern-file:url(img/line_solid_6.png); }
[zoom=14] { line-pattern-file:url(img/line_solid_7.png); }
[zoom=15] { line-pattern-file:url(img/line_shade_22_1.png); }
[zoom=16] { line-pattern-file:url(img/line_shade_22_2.png); }
[zoom>16] { line-pattern-file:url(img/line_shade_22_4.png); }
}
[type='runway'] {
line-pattern-file:url(img/line_shade_22.png);
[zoom>=15] { line-pattern-file:url(img/line_shade_22_2.png); }
[zoom>=16] { line-pattern-file:url(img/line_shade_22_4.png); }
}
}
#building[zoom=15] {
polygon-pattern-file:url(img/shade_medium.png);
line-pattern-file:url(img/line_solid_6.png);
}
#building[zoom>=16] {
::shadow {
polygon-fill: #000;
polygon-geometry-transform:translate(0,2);
image-filters:agg-stack-blur(3,3);
opacity:0.3;
}
::shadow2[zoom>=18] {
line-pattern-file:url(img/line_shade_22.png);
line-pattern-geometry-transform:translate(0,2);
}
::fill[zoom>=15][zoom<=20] {
polygon-pattern-file:url(img/shade_light.png);
polygon-pattern-alignment:global;
line-pattern-file:url(img/line_solid_6.png);
}
}
#admin[admin_level=2] {
::glow[maritime=0] {
opacity: 0.8;
line-color: #e3e3e3;
line-width: 6;
line-join: round;
[zoom>=5] { line-width: 7; }
[zoom>=7] { line-width: 8; }
}
line-width:1.2;
line-color: #666;
line-opacity:0.8;
line-dasharray:2,1,3,1,1,1,4,1,5,1;
line-join: round;
line-cap: round;
[maritime=1] {
line-dasharray:4,4,3,3;
line-opacity: 0.5;
}
[disputed=1] {
line-dasharray: 9,7;
}
[zoom>=5] { line-width: 1.8; }
[zoom>=7] { line-width: 2.2; }
}
#admin[admin_level>=3][maritime=0] {
::glow[maritime=0] {
opacity: 0.8;
line-color: #e3e3e3;
line-width: 4;
line-join: round;
[zoom>=5] { line-width: 5; }
[zoom>=7] { line-width: 6; }
}
line-width: 1;
line-color: #666;
line-opacity:0.5;
line-dasharray:2,1,3,1,1,1,4,1,5,1;
line-join: round;
line-cap: round;
[zoom>=7] { line-width: 1.5; }
[zoom>=10] { line-width: 2.2; }
}