| | 1 | {{{ |
| | 2 | #!style type="mapcss" |
| | 3 | |
| | 4 | meta { |
| | 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 { |
| | 20 | color: red; |
| | 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 { |
| | 64 | color: blue; |
| | 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 { |
| | 86 | color: yellow; |
| | 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 { |
| | 97 | color: yellow; |
| | 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; |
| | 210 | dashes: 8, 4; |
| | 211 | } |
| | 212 | |
| | 213 | }}} |