-
Notifications
You must be signed in to change notification settings - Fork 8
/
Kaart_QC_Krakatoa.mapcss
216 lines (172 loc) · 5.13 KB
/
Kaart_QC_Krakatoa.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
meta {
title: "QC Styles For Krakatoa Team";
description: "Highlights features that were created/modified by users";
watch-modified: true;
version: "1.0";
icon: "http://uncrate.com/p/2016/02/smart-kart.jpg";
min-josm-version: "15289"; /* This style uses groups for settings */
}
/* Notes
1.0 Copied template from QC_Mexico(Sanitas) and added Krakatoa team members -- Logan Barnes -- 11/2/21
1.1 Updated list of team members -- Logan Barnes -- 4/8/22
Tips:
A setting should be created for each separate user:
setting::user_aaron {
type: boolean;
label: tr("Turn User Aaron On/Off");
default: false;
}
-- after :: comes your setting "class" which can be named as you will. Our example show user_aaron
-- Type: boolean; should always exist
-- label: tr("Anything you want to put here") -> This is what shows up under setting in JOSM
-- Default: false -> the setting will remain disabled on launch until a user enables it
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at which point, it becomes necessary to create a selector statement for your user:
*[osm_user_name() == "vespax"][setting("user_aaron")] {
set .aaron;
}
-- * denotes what you are selecting, in this case, every element type in OSM
-- [osm_user_name() == "vespax"] -> this is necessary and should be constructed as such.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In order to construct time stamps, you can use the following:
String: "[eval(JOSM_search("timestamp:2016-02-20/"))]" can be modified in several ways
"timestamp:2016-02-20/" -- Shows all edits edited after date
"timestamp:2016-02-20/2016-02-22" -- Shows all edits after 02-20 but before 02-22
"timestamp:2016-02/ Day and Month can be removed to widen the range of edits shown, example here shows all edits starting in FEB2016.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So, a timestamped search would look like this:
*[osm_user_name() == "IndianaJones737"))][eval(JOSM_search("timestamp:2016-03-14/2016-03-15"] {
casing-width: 10;
casing-color: green;
casing-opacity: 0.2;
}
-- set .aaron; -> this is setting the class for this statement. This allows us to call it out later on. Classes
can be set like that or as so -> set aaron;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
way.aaron, & node.aaron,
-- This shows that we are looking for all ways/nodes which meet the "aaron" class. The comma here denotes
that there is another selector we would like to call out after "aaron"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
z-index: -10;
casing-color: lime;
casing-width: 10;
casing-opacity: 0.3;
}
-- This is our code block which will style up whatever we called out as a selector
*/
/* Create Settings */
/* User Settings */
/* Krakatoa */
settings::krakatoa {
label: tr("Krakatoa");
}
setting::user_JoseL {
type: boolean;
label: tr("Turn User JDKaart On/Off");
default: true;
group: "krakatoa";
}
setting::user_KiraM {
type:boolean;
label:tr("Turn User birdymaps On/Off");
default:true;
group: "krakatoa";
}
setting::user_LoganB {
type:boolean;
label:tr("Turn User WinterWitcher On/Off");
default:true;
group: "krakatoa";
}
setting::user_ReillyM {
type:boolean;
label:tr("Turn User smileyreilly On/Off");
default:true;
group: "krakatoa";
}
setting::user_RyanM {
type:boolean;
label:tr("Turn User martymcfly14 On/Off");
default:true;
group: "krakatoa";
}
/* Tracking Selectors -- Way and node style BEFORE they are uploaded */
node:modified::modified_layer {
symbol-shape: circle;
symbol-size: 22;
symbol-stroke-color: orange;
symbol-stroke-width: 3px;
symbol-fill-opacity: 0.5;
z-index: -5;
}
way:modified::modified_layer,
node:modified < way::modified_layer {
width: 6;
color: transparent;
opacity: 0;
casing-width: 7;
casing-color: #47D608;
casing-opacity: 0.7;
z-index: -5;
}
/* QC Styles */
/* User specific styles: Krakatoa */
*[osm_user_name() == "JDKaart"][setting("user_JoseL")] {
set .JoseL;
}
*[osm_user_name() == "birdymaps"][setting("user_KiraM")] {
set .KiraM;
}
*[osm_user_name() == "WinterWitcher"][setting("user_LoganB")] {
set .LoganB;
}
*[osm_user_name() == "smileyreilly"][setting("user_ReillyM")] {
set .ReillyM;
}
*[osm_user_name() == "martymcfly14"][setting("user_RyanM")] {
set .RyanM;
}
/* This is how you search for someone with a space in their name
*[osm_user_name() == "Hector Vector"] {
set .jman;
}
/* Styling of ways and nodes once they belong to "history" for each individual user */
/*Krakatoa*/
way.JoseL,
way.KiraM,
way.LoganB,
way.ReillyM,
way.RyanM
{
z-index: -10;
casing-color: #B108D6;
casing-width: 7;
casing-opacity: 0.6;
/*
text: eval(concat("Highway type =", " ", tag("highway")));
text-offset: -20;
*/
}
/*Krakatoa*/
node.JoseL,
node.KiraM,
node.LoganB,
node.ReillyM,
node.RyanM
{
symbol-size: 15;
symbol-shape: triangle;
symbol-stroke-color: blue;
symbol-stroke-width: 3px;
symbol-fill-opacity: 0.5;
z-index: -5;
}
node:selected::selected_layer {
symbol-shape: circle;
symbol-size: 22;
symbol-stroke-color: #DF2E08;
symbol-stroke-width: 3px;
symbol-fill-opacity: 0.5;
z-index: -5;
}