-
Notifications
You must be signed in to change notification settings - Fork 8
/
Overlapping Ways.mapcss
executable file
·193 lines (139 loc) · 6.19 KB
/
Overlapping Ways.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
meta {
title: "Overlapping_Ways";
version: "1.3";
description: "Coloring of streets in order to find overlapping ways";
author: "Dylan Patterson";
}
/* Notes
This style is meant to aid with Int-Checks in order to find overlapping ways
It changes your :selected style settings in order to allow you to see overlapping ways
1.1: Adjusted color scheme to make it easier to see overlapping ways
1.2: Added standard gray style back in. Changed selectors so that ways which are drawn
no longer have huge width.
1.3: Adjusted some weird rendering settings.
*/
/* Settings */
setting::overlap {
type: boolean;
label: tr("Click to check for overlapping ways (purple)");
default: false;
}
setting::overlap1 {
type: boolean;
label: tr("Click to check for overlapping ways (gray)");
default: true;
}
setting::overlap2 {
type: boolean;
label: tr("Click to check for overlapping ways (black)");
default: false;
}
setting::overlap3 {
type: boolean;
label: tr("Click to check for overlapping ways (red)");
default: false;
}
setting::overlap4 {
type: boolean;
label: tr("Click to check for overlapping ways (blue)");
default: false;
}
setting::overlap5 {
type: boolean;
label: tr("Click to check for overlapping ways (turqoise)");
default: false;
}
/* Select ways to see overlapping ways */
/* Gray */
way:selected[setting("overlap1")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/]
{
set .select0O;
}
way.select0O[setting("overlap1")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
casing-width: 2;
casing-color: black;
width: 5;
color: white;
opacity: 0.3;
casing-opacity: 0.7;
dashes: none;
casing-dashes: none;
background-dashes: none;
}
/* Purple */
way:selected[setting("overlap")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/]
{
set .selectWO;
}
way.selectWO[setting("overlap")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
casing-width: 2;
casing-color: purple;
width: 5;
color: none;
opacity: 0.3;
casing-opacity: 0.7;
dashes: none;
casing-dashes: none;
background-dashes: none;
}
/* black */
way:selected[setting("overlap2")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
set .selectW1;
}
way.selectW1[setting("overlap2")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
casing-width: 2;
casing-color: black;
width: 5;
color: none;
opacity: 0.3;
casing-opacity: 0.7;
dashes: none;
casing-dashes: none;
background-dashes: none;
}
/* red */
way:selected[setting("overlap3")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
set .selectW2;
}
way.selectW2[setting("overlap3")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
casing-width: 2;
casing-color: #b30000;
width: 5;
color: none;
opacity: 0.3;
casing-opacity: 0.7;
dashes: none;
casing-dashes: none;
background-dashes: none;
}
/* blue */
way:selected[setting("overlap4")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
set .selectW3;
}
way.selectW3[setting("overlap4")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
casing-width: 2;
casing-color: #b3c6ff;
width: 5;
color: none;
opacity: 0.3;
casing-opacity: 0.7;
dashes: none;
casing-dashes: none;
background-dashes: none;
}
/* Turqoise */
way:selected[setting("overlap5")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/]
{
set .selectW4;
}
way.selectW4[setting("overlap5")][highway=~/motorway|trunk|primary|secondary|tertiary|unclassified|residential|motorway_link|trunk_link|primary_link|secondary_link|tertiary_link|living_street|service|pedestrian|track|bus_guideway|escape|raceway|road|footway|bridleway|steps|path|cycleway|proposed|construction/] {
casing-width: 2;
casing-color: #00ffef;
width: 5;
color: none;
opacity: 0.3;
casing-opacity: 0.7;
dashes: none;
casing-dashes: none;
background-dashes: none;
}