-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuilding.mapcss
41 lines (36 loc) · 1.25 KB
/
building.mapcss
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
area[building]:closed {
color: lightgreen;
width: 3;
small_area : true;
font-size: 13;
font-weight: bold;
text-color: lightgreen;
text-position: center;
text: "source";
}
node {
symbol-shape: square;
symbol-size: 8;
}
area|z17-[building]["ref:ruian:building"], area|z17-[building:part]["ref:ruian:building"]
{
color: greenyellow;
text-color: greenyellow;
width: 4;
font-size: 14;
z-index: 1;
fill-opacity: 0.03;
}
area|z17-[building]["building:levels"], area|z17-[building:part]["building:levels"]
{
color: greenyellow;
text-color: greenyellow;
z-index: 1;
fill-opacity: 0.03; /* let the background, i.e. the roof, be recognizable */
width: 4; /* any building WITH a building:levels tag (except for garages) gets a 5 pixel thick outline ... */
/* text-halo-radius: 2; */
/* ... as well as a text tag giving the house number as well as the number of building:levels and roof:levels (and roof height in brackets): */
text: eval(concat( tag(source) ,": BL", tag("building:levels"), "-RL/H", cond(has_tag_key("roof:levels"), tag("roof:levels"), "") , cond(has_tag_key("roof:height"), concat("(",tag("roof:height"),"m)"), "") )) ;
font-size: 14;
font-weight: bold;
}