forked from KaartGroup/Kaart-Styles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kaart_QC_Mexico.mapcss
442 lines (364 loc) · 9.22 KB
/
Kaart_QC_Mexico.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
meta {
title: "QC Styles For Mexico Team";
description: "Highlights features that were created/modified by users";
watch-modified: true;
version: "1.6";
icon: "http://uncrate.com/p/2016/02/smart-kart.jpg";
min-josm-version: "15289"; /* This style uses groups for settings */
}
/* Notes
1.0 Added styles -- provided by Jenn -- and users -- Ian -- 3/11/2019
1.1 Configured styles -- Louis -- 3/13/2019
1.2 Configured style colors and highlighting -- Ian -- 3/15/2019
1.3 Simplified user lines -- Louis -- 3/18/2019
1.4 Adjusted user, style lines and appearances -- 3/20/2019
1.5 Alphabetized users, added new users, added tips, simplified node highlight & node modified overlays -- Louis,Ian,AndrewP -- 5/15/2019
1.6 Updated to include both Sanitas and Nokhu teams -- Sarah R. -- 3/05/2020
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 */
/* Sanitas */
settings::sanitas {
label: tr("Sanitas");
}
setting::user_AaronL {
type:boolean;
label:tr("Turn User StriDez On/Off");
default:true;
group: "sanitas";
}
setting::user_Angie {
type: boolean;
label: tr("Turn User Inigo_Maptoya On/Off");
default: true;
group: "sanitas";
}
setting::user_Anita {
type: boolean;
label: tr("Turn User natureandchill On/Off");
default: true;
group: "sanitas";
}
setting::user_Anja {
type: boolean;
label: tr("Turn User PlinyTheYoungest On/Off");
default: true;
group: "sanitas";
}
setting::user_ArleneC {
type:boolean;
label:tr("Turn User ArleneC On/Off");
default:true;
group: "sanitas";
}
setting::user_Anthony {
type:boolean;
label:tr("Turn User acrague On/Off");
default:true;
group: "sanitas";
}
setting::user_BreiaV {
type:boolean;
label:tr("Turn User 3agleOne On/Off");
default:true;
group: "sanitas";
}
setting::user_Daniel {
type: boolean;
label: tr("Turn User The_Intern On/Off");
default: true;
group: "sanitas";
}
setting::user_IanK {
type:boolean;
label:tr("Turn User Ikohl On/Off");
default:true;
group: "sanitas";
}
setting::user_LandonS {
type:boolean;
label:tr("Turn User luin132 On/Off");
default:true;
group: "sanitas";
}
setting::user_LeanneS {
type:boolean;
label:tr("Turn User LSkalayo On/Off");
default:true;
group: "sanitas";
}
setting::user_LillianM {
type:boolean;
label:tr("Turn User noodlemommy On/Off");
default:true;
group: "sanitas";
}
setting::user_LoganB {
type:boolean;
label:tr("Turn User WinterWitcher On/Off");
default:true;
group: "sanitas";
}
setting::user_LoganM {
type:boolean;
label:tr("Turn User Dalekokarta On/Off");
default:true;
group: "sanitas";
}
setting::user_LoganS {
type: boolean;
label: tr("Turn User 127logs On/Off");
default: true;
group: "sanitas";
}
setting::user_LouisM {
type:boolean;
label:tr("Turn User BlueRanger On/Off");
default:true;
group: "sanitas";
}
setting::user_MorgenM {
type:boolean;
label:tr("Turn User MMantlo On/Off");
default:true;
group: "sanitas";
}
setting::user_NickE {
type:boolean;
label:tr("Turn User jedimasterflint On/Off");
default:true;
group: "sanitas";
}
setting::user_RaulM {
type:boolean;
label:tr("Turn User RaulKaart On/Off");
default:true;
group: "sanitas";
}
setting::user_Riley {
type: boolean;
label: tr("Turn User AlwaysSunnyInMapadelphia On/Off");
default: true;
group: "sanitas";
}
setting::user_RobinH {
type:boolean;
label:tr("Turn User RobinNoodles On/Off");
default:true;
group: "sanitas";
}
setting::user_Sierra {
type:boolean;
label:tr("Turn User riskybiznu On/Off");
default: true;
group: "sanitas";
}
/* 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: Sanitas */
*[osm_user_name() == "StriDez"][setting("user_AaronL")] {
set .AaronL;
}
*[osm_user_name() == "Inigo_Maptoya"][setting("user_Angie")] {
set .Angie;
}
*[osm_user_name() == "natureandchill"][setting("user_Anita")] {
set .Anita;
}
*[osm_user_name() == "PlinyTheYoungest"][setting("user_Anja")] {
set .Anja;
}
*[osm_user_name() == "acrague"][setting("user_Anthony")] {
set .Anthony;
}
*[osm_user_name() == "ArleneC"][setting("user_ArleneC")] {
set .ArleneC;
}
*[osm_user_name() == "3agleOne"][setting("user_BreiaV")] {
set .BreiaV;
}
*[osm_user_name() == "The_Intern"][setting("user_Daniel")] {
set .Daniel;
}
*[osm_user_name() == "Ikohl"][setting("user_IanK")] {
set .IanK;
}
*[osm_user_name() == "luin132"][setting("user_LandonS")] {
set .LandonS;
}
*[osm_user_name() == "LSkalayo"][setting("user_LeanneS")] {
set .LeanneS;
}
*[osm_user_name() == "noodlemommy"][setting("user_LillianM")] {
set .LillianM;
}
*[osm_user_name() == "WinterWitcher"][setting("user_LoganB")] {
set .LoganB;
}
*[osm_user_name() == "Dalekokarta"][setting("user_LoganM")] {
set .LoganM;
}
*[osm_user_name() == "127logs"][setting("user_LoganS")] {
set .LoganS;
}
*[osm_user_name() == "BlueRanger"][setting("user_LouisM")] {
set .LouisM;
}
*[osm_user_name() == "MMantlo"][setting("user_MorgenM")] {
set .MorgenM;
}
*[osm_user_name() == "jedimasterflint"][setting("user_NickE")] {
set .NickE;
}
*[osm_user_name() == "RaulKaart"][setting("user_RaulM")] {
set .RaulM;
}
*[osm_user_name() == "AlwaysSunnyInMapadelphia"][setting("user_Riley")] {
set .Riley;
}
*[osm_user_name() == "RobinNoodles"][setting("user_RobinH")] {
set .RobinH;
}
*[osm_user_name() == "riskybiznu"][setting("user_Sierra")] {
set .Sierra;
}
/* 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 */
/*Sanitas*/
way.AaronL,
way.Angie,
way.Anita,
way.Anja,
way.Anthony,
way.ArleneC,
way.BreiaV,
way.Daniel,
way.IanK,
way.LandonS,
way.LeanneS,
way.LillianM,
way.LoganB,
way.LoganM,
way.LoganS,
way.LouisM,
way.MorgenM,
way.NickE,
way.RaulM,
way.Riley,
way.RobinH,
way.Sierra
{
z-index: -10;
casing-color: #B108D6;
casing-width: 7;
casing-opacity: 0.6;
/*
text: eval(concat("Highway type =", " ", tag("highway")));
text-offset: -20;
*/
}
/*Sanitas*/
node.AaronL,
node.Angie,
node.Anita,
node.Anja,
node.Anthony,
node.ArleneC,
node.BreiaV,
node.Daniel,
node.IanK,
node.LandonS,
node.LeanneS,
node.LillianM,
node.LoganB,
node.LoganM,
node.LoganS,
node.LouisM,
node.MorgenM,
node.NickE,
node.RaulM,
node.Riley,
node.RobinH,
node.Sierra
{
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;
}