forked from gravitystorm/openstreetmap-carto
-
Notifications
You must be signed in to change notification settings - Fork 4
/
addressing.mss
56 lines (51 loc) · 1.38 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
52
53
54
55
56
/* 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-face-name: @book-fonts;
text-fill: @address-color;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
text-size: 10;
text-wrap-width: 20; // 2.0 em
text-line-spacing: -1.5; // -0.15 em
[zoom >= 20] {
text-size: 11;
text-wrap-width: 22; // 2.0 em
text-line-spacing: -1.65; // -0.15 em
}
}
}
/* Building names (rendered differently from addresses because they are
no official postal addresses) */
#building-text {
[zoom >= 14][way_pixels > 3000],
[zoom=15][way_pixels > 750], [zoom=16][way_pixels > 187],
[zoom >= 17] {
text-name: "[name]";
text-placement: interior;
text-face-name: @book-fonts;
text-fill: #444;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
text-size: 11;
text-wrap-width: 22; // 2.0 em
text-line-spacing: -1.65; // -0.15 em
}
}