| | 1 | This style provides visual support for mapping highway areas ([https://wiki.openstreetmap.org/wiki/Key:area:highway area:highway]). |
| | 2 | |
| | 3 | Some features: Colored highway areas by highway category/type of area, pattern for junctions, colored casing, depending on surface, colored street parking areas (see also on [https://github.com/SupaplexOSM/JOSM-area-highway-Style GitHub]). |
| | 4 | |
| | 5 | {{{ |
| | 6 | #!style type="mapcss" |
| | 7 | |
| | 8 | meta { |
| | 9 | title: "Highway areas"; |
| | 10 | description: "Visual support for mapping highway areas (area:highway)."; |
| | 11 | link: "https://wiki.openstreetmap.org/wiki/Key:area:highway"; |
| | 12 | icon: "area_highway.png"; |
| | 13 | author: "Alex Seidel (Supaplex030)"; |
| | 14 | version: "1.[[revision]]_[[date]]"; |
| | 15 | min-josm-version: "11700"; |
| | 16 | } |
| | 17 | |
| | 18 | meta[lang=de] |
| | 19 | { |
| | 20 | title: "Straßenflächen"; |
| | 21 | description: "Visuelle Unterstützung bei der Kartierung von Straßenflächen (area:highway)."; |
| | 22 | } |
| | 23 | |
| | 24 | /* default/backup filling */ |
| | 25 | area[area:highway] |
| | 26 | { |
| | 27 | fill-opacity: 0.4; |
| | 28 | fill-color: #000000; |
| | 29 | fill-extent: 50; |
| | 30 | } |
| | 31 | |
| | 32 | /* ------------------------------------------------------------ */ |
| | 33 | /* Fill highway areas with color, depending on highway category */ |
| | 34 | /* ------------------------------------------------------------ */ |
| | 35 | |
| | 36 | area[area:highway=primary], |
| | 37 | area[area:highway=primary_link] |
| | 38 | { |
| | 39 | fill-color: #FF6633; |
| | 40 | } |
| | 41 | |
| | 42 | area[area:highway=secondary], |
| | 43 | area[area:highway=secondary_link] |
| | 44 | { |
| | 45 | fill-color: #FF9966; |
| | 46 | } |
| | 47 | |
| | 48 | area[area:highway=tertiary], |
| | 49 | area[area:highway=tertiary_link] |
| | 50 | { |
| | 51 | fill-color: #FFFF99; |
| | 52 | } |
| | 53 | |
| | 54 | area[area:highway=residential], |
| | 55 | area[area:highway=unclassified], |
| | 56 | area[area:highway=road] |
| | 57 | { |
| | 58 | fill-color: white; |
| | 59 | } |
| | 60 | |
| | 61 | area[area:highway=living_street], |
| | 62 | area[area:highway=turning_circle] |
| | 63 | { |
| | 64 | fill-color: #C8C8FF; |
| | 65 | } |
| | 66 | |
| | 67 | area[area:highway=service] |
| | 68 | { |
| | 69 | fill-color: #808080; |
| | 70 | } |
| | 71 | |
| | 72 | area[area:highway=pedestrian], |
| | 73 | area[area:highway=footway], |
| | 74 | area[area:highway=path] |
| | 75 | { |
| | 76 | fill-color: #FFFF55; |
| | 77 | fill-opacity: 0.5; |
| | 78 | } |
| | 79 | |
| | 80 | area[area:highway=cycleway] |
| | 81 | { |
| | 82 | fill-color: #745CEF; |
| | 83 | fill-opacity: 0.5; |
| | 84 | } |
| | 85 | |
| | 86 | /* ---------------------------------------------------- */ |
| | 87 | /* Casing on inside of highway areas colored by surface */ |
| | 88 | /* ---------------------------------------------------- */ |
| | 89 | |
| | 90 | area[area:highway]:clockwise |
| | 91 | { |
| | 92 | right-casing-width: 10; |
| | 93 | right-casing-color: gray; |
| | 94 | right-casing-opacity: 0.3; |
| | 95 | } |
| | 96 | |
| | 97 | area[area:highway]:anticlockwise |
| | 98 | { |
| | 99 | left-casing-width: 10; |
| | 100 | left-casing-color: gray; |
| | 101 | left-casing-opacity: 0.3; |
| | 102 | } |
| | 103 | |
| | 104 | area[area:highway][!surface] |
| | 105 | { |
| | 106 | left-casing-width: 0; |
| | 107 | right-casing-width: 0; |
| | 108 | } |
| | 109 | |
| | 110 | area[area:highway][surface=asphalt], |
| | 111 | area[area:highway][surface=paved] |
| | 112 | { |
| | 113 | left-casing-color: black; |
| | 114 | right-casing-color: black; |
| | 115 | } |
| | 116 | |
| | 117 | area[area:highway][surface=sett], |
| | 118 | area[area:highway][surface=cobblestone], |
| | 119 | area[area:highway][surface=unhewn_cobblestone] |
| | 120 | { |
| | 121 | left-casing-color: navy; |
| | 122 | right-casing-color: navy; |
| | 123 | } |
| | 124 | |
| | 125 | area[area:highway][surface=paving_stones] |
| | 126 | { |
| | 127 | left-casing-color: orange; |
| | 128 | right-casing-color: orange; |
| | 129 | } |
| | 130 | |
| | 131 | area[area:highway][surface=concrete], |
| | 132 | area[area:highway][surface="concrete:plates"], |
| | 133 | area[area:highway][surface="concrete:lanes"] |
| | 134 | { |
| | 135 | left-casing-color: maroon; |
| | 136 | right-casing-color: maroon; |
| | 137 | } |
| | 138 | |
| | 139 | area[area:highway][surface=grass], |
| | 140 | area[area:highway][surface=grass_paver] |
| | 141 | { |
| | 142 | left-casing-color: green; |
| | 143 | right-casing-color: green; |
| | 144 | } |
| | 145 | |
| | 146 | /* -------------------------------------- */ |
| | 147 | /* Some color options for specific areas */ |
| | 148 | /* -------------------------------------- */ |
| | 149 | |
| | 150 | area[area:highway=traffic_island] |
| | 151 | { |
| | 152 | fill-color: gray; |
| | 153 | fill-opacity: 0.8; |
| | 154 | right-casing-width: 0; |
| | 155 | left-casing-width: 0; |
| | 156 | } |
| | 157 | |
| | 158 | area[area:highway=prohibited] |
| | 159 | { |
| | 160 | fill-color: white; |
| | 161 | fill-opacity: 0.3; |
| | 162 | right-casing-width: 0; |
| | 163 | left-casing-width: 0; |
| | 164 | } |
| | 165 | |
| | 166 | area[amenity=parking][parking=lane], |
| | 167 | area[amenity=parking][parking=street_side], |
| | 168 | area[amenity=parking][parking=on_kerb], |
| | 169 | area[amenity=parking][parking=half_on_kerb], |
| | 170 | area[amenity=parking][parking=shoulder] |
| | 171 | { |
| | 172 | fill-opacity: 0.4; |
| | 173 | fill-color: #7D3C98; |
| | 174 | fill-extent: 50; |
| | 175 | } |
| | 176 | |
| | 177 | /* ----------------------------------- */ |
| | 178 | /* Fill junctions with striped pattern */ |
| | 179 | /* ----------------------------------- */ |
| | 180 | |
| | 181 | area[area:highway][junction=yes][area:highway=primary], |
| | 182 | area[area:highway][junction=yes][area:highway=primary_link] |
| | 183 | { |
| | 184 | fill-image: images/stripe_texture_FF6633.svg; |
| | 185 | } |
| | 186 | |
| | 187 | area[area:highway][junction=yes][area:highway=secondary], |
| | 188 | area[area:highway][junction=yes][area:highway=secondary_link] |
| | 189 | { |
| | 190 | fill-image: images/stripe_texture_FF9966.svg; |
| | 191 | } |
| | 192 | |
| | 193 | area[area:highway][junction=yes][area:highway=tertiary], |
| | 194 | area[area:highway][junction=yes][area:highway=tertiary_link] |
| | 195 | { |
| | 196 | fill-image: images/stripe_texture_FFFF99.svg; |
| | 197 | } |
| | 198 | |
| | 199 | area[area:highway][junction=yes][area:highway=residential], |
| | 200 | area[area:highway][junction=yes][area:highway=unclassified], |
| | 201 | area[area:highway][junction=yes][area:highway=road] |
| | 202 | { |
| | 203 | fill-image: images/stripe_texture_white.svg; |
| | 204 | } |
| | 205 | |
| | 206 | area[area:highway][junction=yes][area:highway=living_street], |
| | 207 | area[area:highway][junction=yes][area:highway=turning_circle] |
| | 208 | { |
| | 209 | fill-image: images/stripe_texture_C8C8FF.svg; |
| | 210 | } |
| | 211 | |
| | 212 | area[area:highway][junction=yes][area:highway=pedestrian], |
| | 213 | area[area:highway][junction=yes][area:highway=footway], |
| | 214 | area[area:highway][junction=yes][area:highway=path] |
| | 215 | { |
| | 216 | fill-image: images/stripe_texture_FFFF55.svg; |
| | 217 | } |
| | 218 | |
| | 219 | area[area:highway][junction=yes][area:highway=cycleway] |
| | 220 | { |
| | 221 | fill-image: images/stripe_texture_745CEF.svg; |
| | 222 | } |
| | 223 | |
| | 224 | }}} |