-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathINT1_Seamark.mapcss
573 lines (549 loc) · 25.9 KB
/
INT1_Seamark.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
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
/* MapCSS scheme for rendering INT-1 style seamarks based on OpenStreetMap data
*
*/
/* Meta data */
meta {
title: "OpenSeaMap: Seamarks according to INT 1 (IHO standarized symbols)";
icon: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/OpenSeaMap-Logo.svg";
author: "Aun (Skippern) Johnsen, Axel Utech";
version: "0.1";
description: "JOSM rendering of nautical symbols according to IHO standard INT-1";
min-josm-version: 8087;
}
node["seamark:type"] {
symbol-shape: circle;
symbol-size: 2;
color: blue;
}
way["seamark:type"] {
color: blue;
width: thinnest;
opacity: 1;
}
/* B: Positions, Distances, Directions, Compass */
node["seamark:type"=distance_mark]::int1_distance {
symbol-shape: circle;
symbol-size: 10;
symbol-stroke-color: cond(tag("seamark:distance_mark:category") == "not_installed", darkmagenta, black );
text: "seamark:distance_mark:distance";
text-color: cond(tag("seamark:distance_mark:category") == "not_installed", darkmagenta, black );
}
/* D: Cultural Features */
node["seamark:type"=building]::int1_landuse {
symbol-shape: square;
symbol-size: 10;
color: black;
fill-color: black;
opacity: 1.0;
fill-opacity: 1.0;
}
area["seamark:type"=building]::int1_landuse, relation["seamark:type"=building] > way::int1_landuse {
color: black;
fill-color: black;
width: 4;
fill-opacity: 0.75;
opacity: 1.0;
}
way["seamark:type"=cable_overhead]::int1_cable {
width: 2;
dashes: 12,5;
color: darkmagenta;
fill-color: darkmagenta;
fill-opacity: 0.0;
}
node["seamark:type"=pylon]::int1_pylon {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/D/D26.svg";
icon-width: 12;
}
node["seamark:bridge:clearance_height"]::int1_sailing_height,
node["seamark:bridge:clearance_height_closed"]::int1_sailing_height,
node["seamark:bridge:clearance_height_open"]::int1_sailing_height,
node["seamark:cable_overhead:clearance_height"]::int1_sailing_height,
node["seamark:cable_overhead:clearance_height_safe"]::int1_sailing_height,
node["seamark:pipeline_overhead:clearance_height"]::int1_sailing_height {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/D/D20.svg";
icon-width: 24;
text-color: cond(tag(concat("seamark:", tag("seamark:type"), ":clearance_height_safe")) > 0, darkmagenta, black );
text: any(tag(concat("seamark:", tag("seamark:type"), ":clearance_height")),tag(concat("seamark:", tag("seamark:type"), ":clearance_height_safe")),tag(concat("seamark:", tag("seamark:type"), ":clearance_height_closed")),tag(concat("seamark:", tag("seamark:type"), ":clearance_height_open")));
text-anchor-horizontal: center;
text-anchor-vertical: center;
}
area[waterway=dam] {
fill-color: gray;
fill-opacity: 0.4;
width: 3;
color: black;
casing-opacity: 0.0;
}
/* E: Landmarks */
node["seamark:type"=landmark]::int1_landmark {
text: auto;
text-color: black;
symbol-shape: square;
symbol-size: 4;
icon-width: 24;
color: black;
set landmark;
}
node["seamark:landmark:function"=church].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E10.1.svg";
icon-width: 32;
set .church;
}
node["seamark:landmark:function"=chapel].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E11.svg";
}
node["seamark:landmark:category"=tower].church::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E10.2.svg";
}
node["seamark:landmark:category"=spire].church::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E10.3.svg";
}
node["seamark:landmark:category"=dome].church::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E10.4.svg";
}
node["seamark:landmark:function"=temple].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E13.svg";
}
node["seamark:landmark:function"=pagoda].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E14.svg";
}
node["seamark:landmark:function"=shinto_shrine].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E15.svg";
}
node["seamark:landmark:function"=buddhist_temple].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E16.svg";
}
node["seamark:landmark:function"=mosque].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E17.svg";
}
node["seamark:landmark:category"=minaret].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E17.svg";
}
node["seamark:landmark:function"=marabout].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E18.svg";
}
relation[landuse=cemetery] > way::int1_landmark, area[landuse=cemetery]::int1_landmark {
fill-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E19.svg";
}
node["seamark:landmark:category"=tower][!"seamark:landmark:function"].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E20.svg";
}
node["seamark:landmark:category"=tower]["seamark:landmark:function"=communication].landmark::int1_landmark,
node["seamark:landmark:category"=tower]["seamark:landmark:function"=radio].landmark::int1_landmark,
node["seamark:landmark:category"=tower]["seamark:landmark:function"=radar].landmark::int1_landmark,
node["seamark:landmark:category"=tower]["seamark:landmark:function"=microwave].landmark::int1_landmark,
node["seamark:landmark:category"=tower]["seamark:landmark:function"=television].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E30.svg";
}
node["seamark:landmark:category"=mast][!"seamark:landmark:function"].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E28.svg";
icon-width: 16;
icon-offset-y: -11;
}
node["seamark:landmark:category"=mast]["seamark:landmark:function"=communication].landmark::int1_landmark,
node["seamark:landmark:category"=mast]["seamark:landmark:function"=radio].landmark::int1_landmark,
node["seamark:landmark:category"=mast]["seamark:landmark:function"=radar].landmark::int1_landmark,
node["seamark:landmark:category"=mast]["seamark:landmark:function"=microwave].landmark::int1_landmark,
node["seamark:landmark:category"=mast]["seamark:landmark:function"=television].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E28_.svg";
icon-width: 16;
icon-offset-y: -11;
}
node["seamark:landmark:category"=water_tower].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E21.svg";
}
node["seamark:landmark:category"=chimney].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E22.svg";
}
node["seamark:landmark:category"=flare_stack].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E23.svg";
}
node["seamark:landmark:category"=windmill].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E25.svg";
}
node["seamark:landmark:category"=windmotor].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E26.1.svg";
}
node["seamark:landmark:category"=flagstaff].landmark::int1_landmark {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/E/E27.svg";
}
/* F: Ports */
node["seamark:type"=mooring]::int1_mooring {
symbol-shape: circle;
color: black;
symbol-size: 8;
symbol-fill-color: black;
text: "seamark:name";
text-color: black;
}
node["seamark:type"=harbour]::int1_harbour {
set harbour;
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/F/F.svg";
icon-width: 32;
text: "seamark:name";
text-color: black;
}
node["seamark:harbour:category"=fishing].harbour::int1_harbour {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/F/F10.svg";
}
node["seamark:type"=berth]::int1_mooring {
symbol-shape: circle;
color: magenta;
symbol-size: 10;
text: "seamark:name";
text-color: magenta;
}
/* G: Topographic Terms */
/* H: Tides, Currents */
/* I: Depths */
node["depth"]::int1_depth {
text: depth;
font-size: 8;
font-family: TimesNewRoman;
text-color: black;
text-anchor-vertical: below;
}
/* J: Nature of seabed */
/* K: Rocks, Wrecks, Obstructions */
node["seamark:type"=obstruction]::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K40.svg";
icon-width: 16;
}
node["seamark:type"=rock]::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K13_.svg";
icon-width: 12;
set .rock;
}
node["seamark:type"=rock]["seamark:rock:water_level"=dry].rock::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K10.svg";
}
node["seamark:type"=rock]["seamark:rock:water_level"=submerged].rock::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K13.svg";
}
node["seamark:type"=rock]["seamark:rock:water_level"=awash].rock::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K12.svg";
}
node["seamark:type"=rock]["seamark:rock:water_level"=covers].rock::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K11.svg";
}
node["seamark:type"=marine_farm]::int1_marine_farm {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K48.1_no_red.svg";
icon-width: 28;
}
node["seamark:type"=wreck]::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K29.svg";
icon-width: 16;
text-color: black;
font-size: 12;
set .wreck;
}
node["seamark:wreck:category"=non-dangerous].wreck::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K29.svg";
}
node["seamark:wreck:category"=dangerous].wreck::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K28.svg";
}
node["seamark:wreck:category"=distributed_remains].wreck::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K29.svg";
}
node["seamark:wreck:category"=mast_showing].wreck::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K28.svg";
text: eval("masts");
}
node["seamark:wreck:category"=hull_showing].wreck::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K24.svg";
}
node["seamark:wreck:category"=funnel_showing].wreck::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K28.svg";
text: eval("funnel");
}
node["seamark:type"=restricted_area]["seamark:restricted_area:category"=foul_ground]::int1_obstruction {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/K/K31.svg";
text: eval("foul");
text-color: black;
text-anchor-vertical: center;
}
/* L: Offshore Installations */
way["seamark:type"=cable_submarine]::int1_cable {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/L/L31.svg";
repeat-image-width: 16;
repeat-image-spacing: 0;
}
way["seamark:type"=pipeline_submarine]::int1_pipeline {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/L/L40.svg";
repeat-image-width: 32;
repeat-image-spacing: 2;
}
/* M: Tracks, Routes */
way["seamark:type"=recommended_track]::int1_recommended_track {
color: black;
fill-color: black;
width: 3;
opacity: 1.0;
}
way["seamark:type"=navigation_line]::int1_navigation_line {
color: black;
width: 3;
dashes: 8,6;
opacity: 1.0;
}
way["seamark:type"=separation_lane]::int1_separation_lane {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/M/M10.svg";
repeat-image-width: 128;
repeat-image-spacing: 32;
}
way["seamark:type"=recommended_traffic_lane]::int1_separation_lane {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/M/M11.svg";
repeat-image-width: 128;
repeat-image-spacing: 32;
}
way["seamark:type"=separation_line]::int1_separation_line {
color: darkmagenta;
dashes: 8,6;
width: 3;
opacity: 1.0;
}
way["seamark:type"=separation_zone]:closed::int1_separation_zone {
fill-color: magenta;
fill-opacity: 0.5;
}
node["seamark:type"=calling-in_point]::int1_RDOCAL {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/M/M40.", cond(tag("seamark:calling-in_point:traffic_flow") == "one-way", "1", "2") , ".svg"));
icon-height: 24;
icon-orientation: eval(tag("seamark:calling-in_point:orientation"));
text: "seamark:name";
text-color: darkmagenta;
font-size: 18;
text-anchor-vertical: above;
text-anchor-horizontal: center;
}
way[route=ferry]::int1_ferry_route,
relation[route=ferry] > way::int1_ferry_route,
way["seamark:type"=ferry_route]::int1_ferry_route {
color: darkmagenta;
width: 2;
opacity: 1.0;
dashes: 5,8;
}
/* N: Areas, Limites */
way["seamark:type"=restricted_area]::restricted_area_base {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N2.1.svg";
repeat-image-width: 18;
repeat-image-spacing: 8;
}
relation[boundary=protected_area] > way::protected_area_base,
way[boundary=protected_area]::protected_area_base,
way["seamark:type"=natural_reserve]::protected_area_base {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N22.svg";
repeat-image-width: 18;
repeat-image-spacing: 8;
}
way["seamark:restricted_area:restriction"=no_entry]::restricted_area {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N2.2.svg";
repeat-image-width: 20;
repeat-image-spacing: 80;
}
way["seamark:type"=anchorage]::anchorage_base {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N2.1.svg";
repeat-image-width: 18;
repeat-image-spacing: 8;
}
way["seamark:type"=anchorage]::anchorage_area {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N12.svg";
repeat-image-width: 28;
repeat-image-spacing: 80;
}
way["seamark:restricted_area:restriction"~=no_anchoring]::anchorage_area {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N20.svg";
repeat-image-width: 28;
repeat-image-spacing: 80;
}
way["seamark:restricted_area:restriction"~=no_fishing]::no_fishing {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N21.svg";
repeat-image-width: 28;
repeat-image-spacing: 80;
repeat-image-phase: 20;
}
node["seamark:type"=anchorage]::anchorage {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N12.svg";
icon-height: 32;
}
way[boundary],
area[boundary],
relation[boundary] > way::int1_border {
set border;
}
*[boundary=administrative][admin_level=2][!maritime].border::int1_border,
*[boundary=administrative][admin_level=2][maritime?!].border::int1_border,
relation[boundary=administrative][admin_level=2] > way[!maritime].border::int1_border,
relation[boundary=administrative][admin_level=2] > way[maritime?!].border::int1_border {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N40.svg";
repeat-image-width: 150;
repeat-image-spacing: 3;
opacity: 0.05;
}
*[boundary=maritime][border_type=territorial].border::int1_border,
*[boundary=administrative][admin_level=2][maritime?].border::int1_border,
relation[boundary=administrative][admin_level=2] > way[maritime?].border::int1_border,
relation[boundary=administrative][admin_level=2] > way[border_type=territorial].border::int1_border {
repeat-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/N/N41.svg";
repeat-image-width: 150;
repeat-image-spacing: 3;
opacity: 0.05;
}
/* O: Hydrographic Terms */
/* P: Lights */
node[man_made=lighthouse]::int1_lighthouse {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/P/P1.major.disused.svg";
}
node[man_made=lighthouse]["seamark:type"]::int1_lighthouse {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/P/P1.minor.svg";
}
node["seamark:type"=light_major]::int1_lighthouse {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/P/P1.major.svg";
}
node["seamark:type"=light_minor]::int1_lighthouse {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/P/P1.minor.svg";
}
node["seamark:light:colour"]::int1_light {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/P/P10.1_",tag("seamark:light:colour"),".svg"));
icon-offset-x: -5;
icon-offset-y: -6;
}
node["seamark:light:category"=spotlight]::int1_light {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/P/P11_", any(tag("seamark:light:colour"), "white"), ".svg"));
icon-offset-x: 0;
icon-offset-y: 0;
}
/* Q: Buoys, Beacons */
node["seamark:daymark:shape"]::int1_daymark {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/Q9/", replace(replace(tag("seamark:daymark:shape"), " ", "_"), ",", ""), "/", any(replace(tag("seamark:daymark:colour"), ";", "_"), "generic"), ".svg"));
icon-width: 16;
}
node["seamark:type"=buoy_lateral]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=beacon_lateral]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=buoy_cardinal]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=beacon_cardinal]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=buoy_isolated_danger]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=beacon_isolated_danger]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=buoy_safe_water]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=beacon_safe_water]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=buoy_special_purpose]["seamark:daymark:shape"]::int1_daymark,
node["seamark:type"=beacon_special_purpose]["seamark:daymark:shape"]::int1_daymark {
icon-offset-x: 1;
icon-offset-y: -20;
}
node["seamark:type"=buoy_lateral]::int1_buoy,
node["seamark:type"=beacon_lateral]::int1_buoy,
node["seamark:type"=buoy_cardinal]::int1_buoy,
node["seamark:type"=beacon_cardinal]::int1_buoy,
node["seamark:type"=buoy_isolated_danger]::int1_buoy,
node["seamark:type"=beacon_isolated_danger]::int1_buoy,
node["seamark:type"=buoy_safe_water]::int1_buoy,
node["seamark:type"=beacon_safe_water]::int1_buoy,
node["seamark:type"=buoy_special_purpose]::int1_buoy,
node["seamark:type"=beacon_special_purpose]::int1_buoy {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/", any(replace(tag(concat("seamark:",tag("seamark:type"),":shape")), "pile", "buoyant"), "buoyant"), "/", cond(has_tag_key(concat("seamark:",tag("seamark:type"),":colour_pattern")),concat(tag(concat("seamark:",tag("seamark:type"),":colour_pattern")),"/"), ""), any(replace(tag(concat("seamark:",tag("seamark:type"),":colour")),";","_"), "generic"), ".svg" ));
icon-height: 16;
icon-opacity: 1;
icon-offset-x: 1;
icon-offset-y: -6;
text: "seamark:name";
text-color: black;
}
/* Topmarks */
node["seamark:type"=buoy_lateral]["seamark:topmark:shape"]::int1_topmark,
node["seamark:type"=buoy_cardinal]["seamark:topmark:shape"]::int1_topmark,
node["seamark:type"=buoy_isolated_danger]["seamark:topmark:shape"]::int1_topmark,
node["seamark:type"=buoy_safe_water]["seamark:topmark:shape"]::int1_topmark,
node["seamark:type"=buoy_special_purpose]["seamark:topmark:shape"]::int1_topmark {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/Q9/", any(replace(replace(tag("seamark:topmark:shape"), ",", ""), " ", "_"), "sphere"), "/", cond(has_tag_key("seamark:topmark:colour_pattern"), concat(tag("seamark:topmark:colour_pattern"), "/"), ""), any(replace(tag("seamark:topmark:colour"),";","_"), "generic"), ".svg"));
icon-width: 6;
icon-offset-x: 4;
icon-offset-y: -20;
}
node["seamark:type"=beacon_lateral]["seamark:topmark:shape"]::int1_topmark,
node["seamark:type"=beacon_cardinal]["seamark:topmark:shape"]::int1_topmark,
node["seamark:type"=beacon_isolated_danger]["seamark:topmark:shape"]::int1_topmark,
node["seamark:type"=beacon_safe_water]["seamark:topmark:shape"]::int1_topmark,
node["seamark:type"=beacon_special_purpose]["seamark:topmark:shape"]::int1_topmark {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/Q9/", any(replace(replace(tag("seamark:topmark:shape"), ",", ""), " ", "_"), "sphere"), "/", cond(has_tag_key("seamark:topmark:colour_pattern"), concat(tag("seamark:topmark:colour_pattern"), "/"), ""), any(replace(tag("seamark:topmark:colour"),";","_"), "generic"), ".svg"));
icon-width: 6;
icon-offset-x: 1;
icon-offset-y: -20;
}
node["seamark:beacon_lateral:shape"=lattice]::int1_buoy,
node["seamark:beacon_cardinal:shape"=lattice]::int1_buoy,
node["seamark:beacon_isolated_danger:shape"=lattice]::int1_buoy,
node["seamark:beacon_safe_water:shape"=lattice]::int1_buoy,
node["seamark:beacon_special_purpose:shape"=lattice]::int1_buoy{
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/Q111/generic.svg";
icon-height: 16;
}
node["seamark:type"=notice]::int1_notice {
z-index: 1;
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/Q126/generic.svg";
icon-height: 12;
icon-offset-x: 0;
set notice;
}
/* Generic notice marks, try system specific marks if these don't do */
*["seamark:notice:2:category"].notice::int1_notice {
icon-image: eval(concat("http://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/Q126/generic/", tag("seamark:notice:2:category"), ".svg"));
}
*["seamark:notice:1:category"].notice::int1_notice {
icon-image: eval(concat("http://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/Q126/generic/", tag("seamark:notice:1:category"), ".svg"));
}
*["seamark:notice:category"].notice::int1_notice {
icon-image: eval(concat("http://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/Q/Q126/generic/", tag("seamark:notice:category"), ".svg"));
}
/* See BNIWR_MapCSS.mapcss for BNIWR marks */
/* See PPWBC_MapCSS.mapcss for PPWBC marks */
/* See CEVNI_MapCSS.mapcss for CEVNI marks */
/* See RIWR_MapCSS.mapcss for RIWR marks */
/* R: Fog Signals */
node["seamark:fog_signal:category"]::int1_fog_signal {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/R/R1.svg";
icon-height: 12;
icon-offset-x: -10;
icon-offset-y: 6;
}
/* S: Electronic Position-Fixing Systems */
/* T: Services */
node["seamark:type"=pilot_boarding]::int1_pilot {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/T/T1.1.svg";
icon-height: 12;
}
node["seamark:type"=signal_station_traffic]::int1_signal_station,
node["seamark:type"=signal_station_warning]::int1_signal_station {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/T/T20.svg";
icon-height: 12;
}
/* U: Small Craft (Leisure) Facilities */
node["seamark:harbour:category"=marina].harbour::int1_harbour {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/U/U1.1.svg";
}
node["seamark:harbour:category"=marina_no_facilities].harbour::int1_harbour {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/U/U1.2.svg";
}
node["seamark:type"=small_craft_facility]::int1_small_craft {
set small_craft;
text: "seamark:name";
text-color: black;
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/U/U32.svg";
icon-height: 8;
}
node["seamark:small_craft_facility:category"=nautical_club].small_craft::int1_small_craft {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/U/U4_br.svg";
icon-height: 16;
}
node["seamark:small_craft_facility:category"=restaurant].small_craft::int1_small_craft {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/U/U11.svg";
icon-height: 16;
}
node["seamark:small_craft_facility:category"=slipway].small_craft::int1_small_craft {
icon-image: "https://raw.githubusercontent.com/OpenSeaMap/josm/master/icons/svg/U/U5.svg";
icon-width: 32;
}
/* END */