-
Notifications
You must be signed in to change notification settings - Fork 0
/
boundary.mapcss
78 lines (76 loc) · 3.44 KB
/
boundary.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
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
/*
* Boundaries
*/
/* Admin Level 8, municipio */
relation[type=boundary][boundary=administrative][admin_level=8] >[role=label] node::BOUNDARY,
relation[type=multipolygon][boundary=administrative][admin_level=8] >[role=label] node::BOUNDARY {
text: eval(any(parent_tag("official_name"), parent_tag("pt:name"), parent_tag("name"), parent_tag("short_name")));
text-color: purple;
font-size: 10;
font-family: "Serif";
}
relation[type=boundary][boundary=administrative][admin_level=8] > way::BOUNDARY,
relation[type=multipolygon][boundary=administrative][admin_level=8] > way::BOUNDARY {
color: purple;
width: 2;
dashes: 4,8;
text-color: purple;
text-position: line;
text-anchor-vertical: below;
text-offset: 4;
font-size: 8;
text: eval(any(parent_tag("pt:name"), parent_tag("name")));
}
/* Admin Level 4, estado */
relation[type=boundary][boundary=administrative][admin_level=4] >[role=label] node::BOUNDARY,
relation[type=multipolygon][boundary=administrative][admin_level=4] >[role=label] node::BOUNDARY {
text: eval(any(parent_tag("official_name"), parent_tag("pt:name"), parent_tag("name"), parent_tag("short_name")));
text-color: purple;
font-size: 14;
font-family: "Serif";
}
relation[type=boundary][boundary=administrative][admin_level=4] > way::BOUNDARY,
relation[type=multipolygon][boundary=administrative][admin_level=4] > way::BOUNDARY {
color: purple;
width: 2;
dashes: 4,4;
text-color: purple;
text-position: line;
text-anchor-vertical: below;
text-offset: 4;
font-size: 8;
text: eval(any(parent_tag("pt:name"), parent_tag("name")));
}
/* Admin Level 3, region */
relation[type=boundary][boundary=administrative][admin_level=3] > way::BOUNDARY,
relation[type=multipolygon][boundary=administrative][admin_level=3] > way::BOUNDARY {
color: purple;
width: 2;
dashes: 4,3;
text-color: purple;
text-position: line;
text-anchor-vertical: below;
text-offset: 4;
font-size: 8;
text: eval(any(parent_tag("pt:name"), parent_tag("name")));
}
/* Admin Level 2, nation */
relation[type=boundary][boundary=administrative][admin_level=2] >[role=label] node::BOUNDARY,
relation[type=multipolygon][boundary=administrative][admin_level=2] >[role=label] node::BOUNDARY {
text: eval(any(parent_tag("official_name"), parent_tag("pt:name"), parent_tag("name"), parent_tag("short_name")));
text-color: purple;
font-size: 16;
font-family: "Serif";
}
relation[type=boundary][boundary=administrative][admin_level=2] > way::BOUNDARY,
relation[type=multipolygon][boundary=administrative][admin_level=2] > way::BOUNDARY {
color: purple;
width: 2;
dashes: 4,2;
text-color: purple;
text-position: line;
text-anchor-vertical: below;
text-offset: 4;
font-size: 10;
text: eval(any(parent_tag("pt:name"), parent_tag("name")));
}