5 | | title: "Osmc hiking"; |
6 | | description: "Highlight marked hiking trails using osmc tagging schema. Optimized for SK/CZ marking."; |
7 | | version: "0.1.[[revision]]_[[date]]"; |
8 | | author: "Martin Ždila"; |
9 | | } |
10 | | |
11 | | way::red_layer { |
12 | | offset: 2; |
13 | | } |
14 | | relation[osmc:symbol=~/^red:[^:]*:red_bar$/] > way::red_layer { |
| 5 | title: "OSMC Hiking"; |
| 6 | description: "Colorize marked hiking trails using OSMC tagging schema. Optimized for SK/CZ/PL marking."; |
| 7 | version: "0.2.[[revision]]_[[date]]"; |
| 8 | author: "Martin Ždila <martin.zdila@freemap.sk>"; |
| 9 | } |
| 10 | |
| 11 | way::osmc_0 { |
| 12 | offset: 2; |
| 13 | } |
| 14 | |
| 15 | way::osmc_1 { |
| 16 | offset: prop("offset", "osmc_0"); |
| 17 | } |
| 18 | |
| 19 | relation[osmc:symbol=~/^red:[^:]*:[^:]+_bar/] > way::osmc_1 { |
16 | | width: 4; |
17 | | offset: 6; |
18 | | } |
19 | | |
20 | | way::blue_layer { |
21 | | offset: prop("offset", "red_layer"); |
22 | | } |
23 | | relation[osmc:symbol=~/^blue:[^:]*:blue_bar$/] > way::blue_layer { |
| 21 | width: 3; |
| 22 | offset: prop("offset") + 4; |
| 23 | |
| 24 | } |
| 25 | |
| 26 | way::osmc_2 { |
| 27 | offset: prop("offset", "osmc_1"); |
| 28 | } |
| 29 | |
| 30 | relation[osmc:symbol=~/^red:[^:]*:[^:]+_(?!bar)/] > way::osmc_2 { |
| 31 | color: red; |
| 32 | width: 3; |
| 33 | offset: prop("offset") + 4; |
| 34 | dashes: 8, 4; |
| 35 | } |
| 36 | |
| 37 | way::osmc_3 { |
| 38 | offset: prop("offset", "osmc_2"); |
| 39 | } |
| 40 | |
| 41 | relation[osmc:symbol=~/^green:[^:]*:[^:]+_bar/] > way::osmc_3 { |
| 42 | color: green; |
| 43 | width: 3; |
| 44 | offset: prop("offset") + 4; |
| 45 | |
| 46 | } |
| 47 | |
| 48 | way::osmc_4 { |
| 49 | offset: prop("offset", "osmc_3"); |
| 50 | } |
| 51 | |
| 52 | relation[osmc:symbol=~/^green:[^:]*:[^:]+_(?!bar)/] > way::osmc_4 { |
| 53 | color: green; |
| 54 | width: 3; |
| 55 | offset: prop("offset") + 4; |
| 56 | dashes: 8, 4; |
| 57 | } |
| 58 | |
| 59 | way::osmc_5 { |
| 60 | offset: prop("offset", "osmc_4"); |
| 61 | } |
| 62 | |
| 63 | relation[osmc:symbol=~/^blue:[^:]*:[^:]+_bar/] > way::osmc_5 { |
25 | | width: 4; |
26 | | offset: prop("offset") + 4; |
27 | | } |
28 | | |
29 | | way::green_layer { |
30 | | offset: prop("offset", "blue_layer"); |
31 | | } |
32 | | relation[osmc:symbol=~/^green:[^:]*:green_bar$/] > way::green_layer { |
33 | | color: green; |
34 | | width: 4; |
35 | | offset: prop("offset") + 4; |
36 | | } |
37 | | |
38 | | way::yellow_layer { |
39 | | offset: prop("offset", "green_layer"); |
40 | | } |
41 | | relation[osmc:symbol=~/^yellow:[^:]*:yellow_bar/] > way::yellow_layer { |
| 65 | width: 3; |
| 66 | offset: prop("offset") + 4; |
| 67 | |
| 68 | } |
| 69 | |
| 70 | way::osmc_6 { |
| 71 | offset: prop("offset", "osmc_5"); |
| 72 | } |
| 73 | |
| 74 | relation[osmc:symbol=~/^blue:[^:]*:[^:]+_(?!bar)/] > way::osmc_6 { |
| 75 | color: blue; |
| 76 | width: 3; |
| 77 | offset: prop("offset") + 4; |
| 78 | dashes: 8, 4; |
| 79 | } |
| 80 | |
| 81 | way::osmc_7 { |
| 82 | offset: prop("offset", "osmc_6"); |
| 83 | } |
| 84 | |
| 85 | relation[osmc:symbol=~/^yellow:[^:]*:[^:]+_bar/] > way::osmc_7 { |
43 | | width: 4; |
44 | | offset: prop("offset") + 4; |
45 | | } |
46 | | |
47 | | way::red_x_layer { |
48 | | offset: prop("offset", "yellow_layer"); |
49 | | } |
50 | | relation[osmc:symbol=~/^red:[^:]*:red_(triangle|bowl|corner|backslash|L|turned_T|arch|dot|house)$/] > way::red_x_layer { |
51 | | color: red; |
52 | | width: 4; |
53 | | offset: prop("offset") + 4; |
54 | | dashes: 8, 4; |
55 | | } |
56 | | |
57 | | way::blue_x_layer { |
58 | | offset: prop("offset", "red_x_layer"); |
59 | | } |
60 | | relation[osmc:symbol=~/^blue:[^:]*:blue_(triangle|bowl|corner|backslash|L|turned_T|arch|dot|house)$/] > way::blue_x_layer { |
61 | | color: blue; |
62 | | width: 4; |
63 | | offset: prop("offset") + 4; |
64 | | dashes: 8, 4; |
65 | | } |
66 | | |
67 | | way::green_x_layer { |
68 | | offset: prop("offset", "blue_x_layer"); |
69 | | } |
70 | | relation[osmc:symbol=~/^green:[^:]*:green_(triangle|bowl|corner|backslash|L|turned_T|arch|dot|house)$/] > way::green_x_layer { |
71 | | color: green; |
72 | | width: 4; |
73 | | offset: prop("offset") + 4; |
74 | | dashes: 8, 4; |
75 | | } |
76 | | |
77 | | way::yellow_x_layer { |
78 | | offset: prop("offset", "green_x_layer"); |
79 | | } |
80 | | relation[osmc:symbol=~/^yellow:[^:]*:yellow_(triangle|bowl|corner|backslash|L|turned_T|arch|dot|house)$/] > way::yellow_x_layer { |
| 87 | width: 3; |
| 88 | offset: prop("offset") + 4; |
| 89 | |
| 90 | } |
| 91 | |
| 92 | way::osmc_8 { |
| 93 | offset: prop("offset", "osmc_7"); |
| 94 | } |
| 95 | |
| 96 | relation[osmc:symbol=~/^yellow:[^:]*:[^:]+_(?!bar)/] > way::osmc_8 { |
82 | | width: 4; |
83 | | offset: prop("offset") + 4; |
| 98 | width: 3; |
| 99 | offset: prop("offset") + 4; |
| 100 | dashes: 8, 4; |
| 101 | } |
| 102 | |
| 103 | way::osmc_9 { |
| 104 | offset: prop("offset", "osmc_8"); |
| 105 | } |
| 106 | |
| 107 | relation[osmc:symbol=~/^black:[^:]*:[^:]+_bar/] > way::osmc_9 { |
| 108 | color: gray; |
| 109 | width: 3; |
| 110 | offset: prop("offset") + 4; |
| 111 | |
| 112 | } |
| 113 | |
| 114 | way::osmc_10 { |
| 115 | offset: prop("offset", "osmc_9"); |
| 116 | } |
| 117 | |
| 118 | relation[osmc:symbol=~/^black:[^:]*:[^:]+_(?!bar)/] > way::osmc_10 { |
| 119 | color: gray; |
| 120 | width: 3; |
| 121 | offset: prop("offset") + 4; |
| 122 | dashes: 8, 4; |
| 123 | } |
| 124 | |
| 125 | way::osmc_11 { |
| 126 | offset: prop("offset", "osmc_10"); |
| 127 | } |
| 128 | |
| 129 | relation[osmc:symbol=~/^brown:[^:]*:[^:]+_bar/] > way::osmc_11 { |
| 130 | color: brown; |
| 131 | width: 3; |
| 132 | offset: prop("offset") + 4; |
| 133 | |
| 134 | } |
| 135 | |
| 136 | way::osmc_12 { |
| 137 | offset: prop("offset", "osmc_11"); |
| 138 | } |
| 139 | |
| 140 | relation[osmc:symbol=~/^brown:[^:]*:[^:]+_(?!bar)/] > way::osmc_12 { |
| 141 | color: brown; |
| 142 | width: 3; |
| 143 | offset: prop("offset") + 4; |
| 144 | dashes: 8, 4; |
| 145 | } |
| 146 | |
| 147 | way::osmc_13 { |
| 148 | offset: prop("offset", "osmc_12"); |
| 149 | } |
| 150 | |
| 151 | relation[osmc:symbol=~/^orange:[^:]*:[^:]+_bar/] > way::osmc_13 { |
| 152 | color: orange; |
| 153 | width: 3; |
| 154 | offset: prop("offset") + 4; |
| 155 | |
| 156 | } |
| 157 | |
| 158 | way::osmc_14 { |
| 159 | offset: prop("offset", "osmc_13"); |
| 160 | } |
| 161 | |
| 162 | relation[osmc:symbol=~/^orange:[^:]*:[^:]+_(?!bar)/] > way::osmc_14 { |
| 163 | color: orange; |
| 164 | width: 3; |
| 165 | offset: prop("offset") + 4; |
| 166 | dashes: 8, 4; |
| 167 | } |
| 168 | |
| 169 | way::osmc_15 { |
| 170 | offset: prop("offset", "osmc_14"); |
| 171 | } |
| 172 | |
| 173 | relation[osmc:symbol=~/^purple:[^:]*:[^:]+_bar/] > way::osmc_15 { |
| 174 | color: purple; |
| 175 | width: 3; |
| 176 | offset: prop("offset") + 4; |
| 177 | |
| 178 | } |
| 179 | |
| 180 | way::osmc_16 { |
| 181 | offset: prop("offset", "osmc_15"); |
| 182 | } |
| 183 | |
| 184 | relation[osmc:symbol=~/^purple:[^:]*:[^:]+_(?!bar)/] > way::osmc_16 { |
| 185 | color: purple; |
| 186 | width: 3; |
| 187 | offset: prop("offset") + 4; |
| 188 | dashes: 8, 4; |
| 189 | } |
| 190 | |
| 191 | way::osmc_17 { |
| 192 | offset: prop("offset", "osmc_16"); |
| 193 | } |
| 194 | |
| 195 | relation[osmc:symbol=~/^white:[^:]*:[^:]+_bar/] > way::osmc_17 { |
| 196 | color: white; |
| 197 | width: 3; |
| 198 | offset: prop("offset") + 4; |
| 199 | |
| 200 | } |
| 201 | |
| 202 | way::osmc_18 { |
| 203 | offset: prop("offset", "osmc_17"); |
| 204 | } |
| 205 | |
| 206 | relation[osmc:symbol=~/^white:[^:]*:[^:]+_(?!bar)/] > way::osmc_18 { |
| 207 | color: white; |
| 208 | width: 3; |
| 209 | offset: prop("offset") + 4; |