-
Notifications
You must be signed in to change notification settings - Fork 4
/
mm_validation.mapcss
114 lines (78 loc) · 2.17 KB
/
mm_validation.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
meta {
title: "Missing Maps / Youth Mappers Validators Checks";
version: "1.7";
description: "Some easy settings to find problems that are common in HOT, Missing Maps and Youth Mappers tasks -- namely roads that have a name, which might suspect, and buildings that aren't tagged as building=yes";
author: "George Washington University";
/* Contributors: Andrew Wiseman */
/* Credit: HOT & Missing Maps & Youth Mappers */
/* based partially on "HOT-Validate" by "MarkCupitt" */
}
/* makes tracks show up better */
way[highway=track]
{
color: olive;
}
/* Sees if highways are named */
way["highway"=~/^(secondary|tertiary|unclassified|residential|track|road|path|living_street)$/][name] {
casing-color: green;
casing-width: 3;
}
/* Sees if highways are named for themselves */
way[highway]["name"=~/^(secondary|tertiary|unclassified|residential|track|road|path|living_street)$/] {
casing-color: red;
casing-width: 3;
}
/* Checks if buildings aren't tagged building=yes */
way[building][!building?] {
fill-color: orange;
casing-color: orange;
casing-width: 4;
}
/* Checks if buildings have a name */
way[building][name] {
fill-color: yellow;
casing-color: yellow;
casing-width: 3;
}
/* Flag any Intersects between ways and natural areas */
area[natural]:closed > node:connection
{
color: red;
fill-color: red;
fill-opacity: 0.7;
symbol-shape: triangle;
symbol-size: 30;
symbol-fill-color: orange;
symbol-fill-opacity: 0.6;
symbol-stroke-color: black;
symbol-stroke-opacity: 0.7;
}
/* Flag any Intersects between ways and buildings */
way[highway] > node:connection
{
set .way5;
}
way[building]:closed > node:connection!.way5
{
color: orange;
fill-color: orange;
fill-opacity: 0.7;
symbol-shape: triangle;
symbol-size: 25;
symbol-fill-color: orange;
symbol-fill-opacity: 0.6;
symbol-stroke-color: black;
symbol-stroke-opacity: 0.7;
}
way[building]:closed > node:connection.way5
{
color: red;
fill-color: red;
fill-opacity: 0.7;
symbol-shape: triangle;
symbol-size: 25;
symbol-fill-color: red;
symbol-fill-opacity: 0.6;
symbol-stroke-color: black;
symbol-stroke-opacity: 0.7;
}