forked from Zverik/veloroad
-
Notifications
You must be signed in to change notification settings - Fork 1
/
places.mss
116 lines (108 loc) · 2.87 KB
/
places.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
#places {
[place="city"][zoom<12],
[place="town"][zoom>=9][zoom<15],
[place="village"][zoom>=12],
[place="suburb"][zoom>=11][zoom<14],
[place="hamlet"][zoom>=13] {
text-face-name: @sans_caption;
text-name: [name];
text-halo-radius: 1;
text-halo-fill: fadeout(white, 50%);
text-placement-type: simple;
text-placements: "X,N,S,NE,SE,NW,SW";
text-min-distance: 10;
text-allow-overlap: false;
[place!="city"][place!="suburb"][zoom<13],
[place="city"][zoom<7] {
text-placement-type: simple;
text-placements: "NE,NW,SW,SE,E,N,W,S";
text-dx: 4;
text-dy: 4;
}
text-size: 10;
[place="city"] {
[zoom<=7][zoom>6] {text-size: 11; }
[zoom>7][zoom<=8] {text-size: 13; }
[zoom>8][zoom<10] { text-size: 14; }
[zoom>=10] { text-size: 16; }
}
[place="town"] {
[zoom<12] { text-size: 12; }
[zoom>=12] { text-size: 14; }
}
[place="suburb"] {
[zoom<12] { text-size: 11; }
[zoom>=12] { text-size: 12; }
}
[place="village"] {
text-size: 12;
}
}
[place="town"][zoom>=7][zoom<9],
[place="village"][zoom>=9][zoom<12],
[place="hamlet"][zoom>=10][zoom<13],
[place="isolated_dwelling"][zoom>=13],
[place="allotments"][zoom>=13] {
shield-file: url(icons/place.svg);
shield-face-name: @sans_caption;
shield-name: [name];
shield-halo-radius: 1;
shield-halo-fill: fadeout(white, 50%);
shield-placement-type: simple;
shield-placements: "NE,NW,SW,SE,E,N,W,S";
shield-text-dx: 4;
shield-text-dy: 4;
shield-min-distance: 10;
shield-allow-overlap: false;
shield-unlock-image: true;
/*text-character-spacing: 1.00;*/
[place="town"], [place="city"] {
shield-face-name: @sans;
}
shield-size: 10;
[place="town"] {
[zoom>=8][zoom<9] { shield-size: 12; }
[zoom>=9] { shield-size: 13; }
}
[place="village"] {
[zoom>=10]{
shield-size: 12;
shield-transform: scale(1.3, 1.3);
}
}
[place="hamlet"][zoom<12] { shield-min-distance: 20; }
[place="hamlet"][zoom>=12] { shield-min-distance: 1; }
}
}
#islands {
[zoom>=6][zoom<8][way_area>=3e7][way_area<3e9],
[zoom>=8][zoom<10][way_area>=3e6][way_area<1e8],
[zoom>=10][zoom<12][way_area>=3e5][way_area<3e6] {
text-face-name: @sans_italic;
text-name: [name];
text-fill: black;
text-halo-radius: 1;
text-halo-fill: fadeout(white, 50%);
text-min-distance: 30;
text-allow-overlap: false;
text-placement-type: simple;
text-placements: "NE,NW,SW,SE,E,N,W,S";
text-dx: 6;
text-dy: 4;
text-size: 9;
}
}
#placep {
[zoom>=9][zoom<12] {
polygon-fill: @lightgray;
polygon-opacity: 1;
}
[zoom>=12] {
polygon-fill: @lightlightgray;
polygon-opacity: 1;
}
}
#residential[zoom>=12] {
polygon-fill: @lightgray;
polygon-opacity: 1;
}