This repository has been archived by the owner on Jan 18, 2020. It is now read-only.
forked from gravitystorm/openstreetmap-carto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
addressing.mss
68 lines (63 loc) · 1.75 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
57
58
59
60
61
62
63
64
65
66
67
68
/* 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];
}
["addr_unit" != null] {
text-name: [addr_housenumber] + " " + [addr_unit];
["addr_housename" != null] {
text-name: [addr_housenumber] + " " + [addr_unit] + "\n" + [addr_housename];
}
}
}
text-placement: interior;
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: 30; // 3.0 em
text-line-spacing: -1.5; // -0.15 em
text-margin: 3; // 0.3 em
[zoom >= 18] {
text-halo-radius: @standard-halo-radius * 1.25;
["addr_unit" != null]["addr_housenumber" = null] {
text-name: [addr_unit];
}
}
[zoom >= 20] {
text-size: 11;
text-wrap-width: 22; // 2.0 em
text-line-spacing: -1.65; // -0.15 em
text-margin: 3.3; // 0.3 em
}
}
}
/* 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-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
}
}