forked from gravitystorm/openstreetmap-carto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
addressing.mss
51 lines (46 loc) · 1.13 KB
/
addressing.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
/* Features related to (postal) adresses: */
@address-color: #666;
#interpolation {
[zoom >= 17] {
line-color: @address-color;
line-width: 1;
line-dasharray: 2,4;
}
}
#addresses {
[zoom >= 17] {
text-name: "[addr_housename]";
["addr_housenumber" != null] {
text-name: [addr_housenumber];
["addr_housename" != null] {
text-name: [addr_housenumber] + "\n" + [addr_housename];
}
}
text-placement: interior;
text-min-distance: 1;
text-wrap-width: 20;
text-face-name: @book-fonts;
text-fill: @address-color;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
text-size: 10;
[zoom >= 20] {
text-size: 11;
}
}
}
/* Building names (rendered differently from addresses because they are
no official postal addresses) */
#building-text {
[zoom >= 14][way_pixels > 3000],
[zoom >= 17] {
text-name: "[name]";
text-placement: interior;
text-wrap-width: 20;
text-face-name: @book-fonts;
text-fill: #444;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
text-size: 11;
}
}