-
Notifications
You must be signed in to change notification settings - Fork 8
/
Kaart_QC_Dwarf.mapcss
494 lines (391 loc) · 9.65 KB
/
Kaart_QC_Dwarf.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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
meta {
title: "QC Styles For Dwarf Team";
description: "Highlights features that were created/modified by users";
watch-modified: true;
version: "1.5";
icon: "http://uncrate.com/p/2016/02/smart-kart.jpg";
min-josm-version: "15289"; /* This style uses groups for settings */
}
/* Notes
1.2 updates made to usernames
1.3 Added Kaart users -- Aaron -- 12/14/2016
1.4 Added new way & node styles -- Louis -- 3/20/2019
1.5 Alphabetized users, added new users, added tips, simplified node highlight & node modified overlays -- Louis,Ian,AndrewP -- 5/15/2019
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 */
/* Brazil Team */
settings::brazil {
label: tr("Brazil");
}
setting::user_andrewp {
type: boolean;
label: tr("Turn User G_Fyyar On/Off");
default: true;
group: "brazil";
}
setting::user_andrews {
type: boolean;
label: tr("Turn User Plutocrats On/Off");
default: true;
group: "brazil";
}
setting::user_angie {
type: boolean;
label: tr("Turn User Inigo_Maptoya On/Off");
default: true;
group: "brazil";
}
setting::user_anita {
type: boolean;
label: tr("Turn User natureandchill On/Off");
default: true;
group: "brazil";
}
setting::user_anja {
type: boolean;
label: tr("Turn User Ajaie On/Off");
default: true;
group: "brazil";
}
setting::user_callista {
type: boolean;
label: tr("Turn User camapsta On/Off");
default: true;
group: "brazil";
}
setting::user_christian {
type: boolean;
label: tr("Turn User Co2013 On/Off");
default: true;
group: "brazil";
}
setting::user_daniel {
type: boolean;
label: tr("Turn User The_Intern On/Off");
default: true;
group: "brazil";
}
setting::user_farris {
type: boolean;
label: tr("Turn User FarieBerrie On/Off");
default: true;
group: "brazil";
}
setting::user_johnny {
type: boolean;
label: tr("Turn User spititout On/Off");
default: true;
group: "brazil";
}
setting::user_joseph {
type: boolean;
label: tr("Turn User Szekha On/Off");
default: true;
group: "brazil";
}
setting::user_logan {
type: boolean;
label: tr("Turn User 127logs On/Off");
default: true;
group: "brazil";
}
setting::user_luis {
type: boolean;
label: tr("Turn User medrano93 On/Off");
default: true;
group: "brazil";
}
setting::user_marshall {
type: boolean;
label: tr("Turn User MTG5093 On/Off");
default: true;
group: "brazil";
}
setting::user_nickm {
type: boolean;
label: tr("Turn User nickmettauer On/Off");
default: true;
group: "brazil";
}
setting::user_rd {
type: boolean;
label: tr("Turn User mr_et On/Off");
default: true;
group: "brazil";
}
setting::user_riley {
type: boolean;
label: tr("Turn User AlwaysSunnyInMapadelphia On/Off");
default: true;
group: "brazil";
}
setting::user_robert {
type: boolean;
label: tr("Turn User Bravesfan On/Off");
default: true;
group: "brazil";
}
setting::user_ryanf {
type: boolean;
label: tr("Turn User rytheking On/Off");
default: true;
group: "brazil";
}
setting::user_ryanf2 { /* Ryan F had a second account when he first started */
type: boolean;
label: tr("Turn User rytheking2 On/Off");
default: true;
group: "brazil";
}
setting::user_sage {
type: boolean;
label: tr("Turn User BobGod On/Off");
default: true;
group: "brazil";
}
setting::user_sarena {
type: boolean;
label: tr("Turn User swells5 On/Off");
default: true;
group: "brazil";
}
setting::user_SherryM {
type:boolean;
label:tr("Turn User Sherbare On/Off");
default: true;
group: "brazil";
}
setting::user_sierra {
type:boolean;
label:tr("Turn User sierrae-kaart On/Off");
default: true;
group: "brazil";
}
setting::user_tanner {
type:boolean;
label:tr("Turn User 3636pacers On/Off");
default: true;
group: "brazil";
}
/* 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 */
*[osm_user_name() == "G_Fyyar"][setting("user_andrewp")] {
set .andrewp;
}
*[osm_user_name() == "Plutocrats"][setting("user_andrews")] {
set .andrews;
}
*[osm_user_name() == "Inigo_Maptoya"][setting("user_angie")] {
set .angie;
}
*[osm_user_name() == "natureandchill"][setting("user_anita")] {
set .anita;
}
*[osm_user_name() == "Ajaie"][setting("user_anja")] {
set .anja;
}
*[osm_user_name() == "camapsta"][setting("user_callista")] {
set .callista;
}
*[osm_user_name() == "Co2013"][setting("user_christian")] {
set .christian;
}
*[osm_user_name() == "The_Intern"][setting("user_daniel")] {
set .daniel;
}
*[osm_user_name() == "FarieBerrie"][setting("user_farris")] {
set .farris;
}
*[osm_user_name() == "spititout"][setting("user_johnny")] {
set .johnny;
}
*[osm_user_name() == "Szekha"][setting("user_joseph")] {
set .joseph;
}
*[osm_user_name() == "127logs"][setting("user_logan")] {
set .logan;
}
*[osm_user_name() == "medrano93"][setting("user_luis")] {
set .luis;
}
*[osm_user_name() == "MTG5093"][setting("user_marshall")] {
set .marshall;
}
*[osm_user_name() == "nickmettauer"][setting("user_nickm")] {
set .nickm;
}
*[osm_user_name() == "mr_et"][setting("user_rd")] {
set .rd;
}
*[osm_user_name() == "AlwaysSunnyInMapadelphia"][setting("user_riley")] {
set .riley;
}
*[osm_user_name() == "Bravesfan"][setting("user_robert")] {
set .robert;
}
*[osm_user_name() == "rytheking"][setting("user_ryanf")] {
set .ryanf;
}
*[osm_user_name() == "rytheking2"][setting("user_ryanf2")] {
set .ryanf2;
}
*[osm_user_name() == "BobGod"][setting("user_sage")] {
set .sage;
}
*[osm_user_name() == "swells5"][setting("user_sarena")] {
set .sarena;
}
*[osm_user_name() == "Sherbare"][setting("user_SherryM")] {
set .SherryM;
}
*[osm_user_name() == "sierrae-kaart"][setting("user_sierra")] {
set .sierra;
}
*[osm_user_name() == "3636pacers"][setting("user_tanner")] {
set .tanner;
}
/* 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 */
way.andrewp,
way.andrews,
way.angie,
way.anita,
way.anja,
way.callista,
way.christian,
way.daniel,
way.farris,
way.johnny,
way.joseph,
way.logan,
way.luis,
way.marshall,
way.nickm,
way.rd,
way.riley,
way.robert,
way.ryanf,
way.ryanf2,
way.sage,
way.sarena,
way.SherryM,
way.sierra,
way.tanner{
z-index: -10;
casing-color: #B108D6;
casing-width: 7;
casing-opacity: 0.6;
/*
text: eval(concat("Highway type =", " ", tag("highway")));
text-offset: -20;
*/
}
node.andrewp,
node.andrews,
node.angie,
node.anita,
node.anja,
node.callista,
node.christian,
node.daniel,
node.farris,
node.johnny,
node.joseph,
node.logan,
node.luis,
node.marshall,
node.nickm,
node.rd,
node.riley,
node.robert,
node.ryanf,
node.ryanf2,
node.sage,
node.sarena,
node.SherryM,
node.sierra,
node.tanner {
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;
}