forked from OpenNauticalChart/josm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BNIWR_MapCSS.mapcss
66 lines (62 loc) · 2.99 KB
/
BNIWR_MapCSS.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
/* MapCSS scheme for rendering INT-1 style maps based on OpenStreetMap data
*
* The best way to check marine map data quality is to compare with existing map with
* similar rendering. Also for maritime personel wanting to verify if what is in the
* database corresponds with reality, seeing it rendered in a standardized and familiar
* way is the best option.
*
*/
/* Meta data */
meta {
title: "BNIWR Rendering (standarized symbols)";
icon: "https://raw.githubusercontent.com/OpenNauticalChart/josm/master/icons/svg/IHO_c.svg";
author: "Aun (Skippern) Johnsen";
version: "0.1";
description: "JOSM rendering of nautical symbols according to BNIWR standard";
min-josm-version: 8087;
}
/* For JOSM, creating a light background color */
canvas {
antialiasing: 'full';
default-points: true; /* show points */
default-lines: true; /* show lines */
}
/* Erase generic */
*["seamark:notice:system"=bniwr2].notice::int1_notice,
*["seamark:notice:system"=bniwr].notice::int1_notice {
icon-opacity: 0.0;
}
node["seamark:notice:system"=bniwr]["seamark:type"=notice]::bniwr_notice {
z-index: 4;
icon-image: "https://raw.githubusercontent.com/OpenNauticalChart/josm/master/icons/svg/Q/Q126/generic.svg";
icon-height: 16;
icon-offset-x: 0;
set notice;
}
node["seamark:notice:system"=bniwr]["seamark:notice:1:category"]::bniwr_notice_left {
z-index: 5;
icon-image: "https://raw.githubusercontent.com/OpenNauticalChart/josm/master/icons/svg/Q/Q126/generic.svg";
icon-height: 16;
icon-offset-x: 8;
set notice_left;
}
node["seamark:notice:system"=bniwr]["seamark:notice:2:category"]::bniwr_notice_right {
z-index: 5;
icon-image: "https://raw.githubusercontent.com/OpenNauticalChart/josm/master/icons/svg/Q/Q126/generic.svg";
icon-height: 16;
icon-offset-x: -8;
set notice_right;
}
*["seamark:notice:system"=bniwr]["seamark:notice:category"].notice::bniwr_notice,
*["seamark:notice:system"=bniwr2]["seamark:notice:category"].notice::bniwr_notice {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenNauticalChart/josm/master/icons/svg/Q/Q126/BNIWR/", tag("seamark:notice:bank"), "/", tag("seamark:notice:category"), ".svg"));
}
*["seamark:notice:1:system"=bniwr]["seamark:notice:1:category"].notice_left::bniwr_notice_left,
*["seamark:notice:1:system"=bniwr2]["seamark:notice:1:category"].notice_left::bniwr_notice_left {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenNauticalChart/josm/master/icons/svg/Q/Q126/BNIWR/", tag("seamark:notice:1:bank"), "/", tag("seamark:notice:1:category"), ".svg"));
}
*["seamark:notice:2:system"=bniwr]["seamark:notice:2:category"].notice_right::bniwr_notice_right,
*["seamark:notice:2:system"=bniwr2]["seamark:notice:2:category"].notice_right::bniwr_notice_right {
icon-image: eval(concat("https://raw.githubusercontent.com/OpenNauticalChart/josm/master/icons/svg/Q/Q126/BNIWR/", tag("seamark:notice:2:bank"), "/", tag("seamark:notice:2:category"), ".svg"));
}
/* END */