| | 1 | [[PageOutline(2-10,Table of Content)]] |
| | 2 | |
| | 3 | = Coloured buildings = |
| | 4 | |
| | 5 | Detta är en svensk version av Coloured buildings.de. |
| | 6 | |
| | 7 | == Code == |
| | 8 | {{{ |
| | 9 | #!style type="mapcss" |
| | 10 | |
| | 11 | meta |
| | 12 | { |
| | 13 | title: "Coloured Buildings.sv"; |
| | 14 | author: "riiga"; |
| | 15 | version: "1.0[[revision]]_[[date]]"; |
| | 16 | description: "Style to classify buildings (Swedish)"; |
| | 17 | link: "https://josm.openstreetmap.de/wiki/Styles/Coloured_buildings_sv"; |
| | 18 | } |
| | 19 | meta[lang=sv] |
| | 20 | { |
| | 21 | title: "Coloured Buildings.sv"; |
| | 22 | description: "Stil för byggnadsklassificering"; |
| | 23 | link: "https://josm.openstreetmap.de/wiki/Styles/Coloured_buildings_sv"; |
| | 24 | } |
| | 25 | area[building=residential] |
| | 26 | { |
| | 27 | text: eval("Bostad"); |
| | 28 | text-color: black; |
| | 29 | font-size: 9; |
| | 30 | z-index: 1; |
| | 31 | color: #FFFFFF; |
| | 32 | fill-color: #FFFFFF; |
| | 33 | width: 3; |
| | 34 | dashes: 10,2; |
| | 35 | } |
| | 36 | |
| | 37 | area[building=house] |
| | 38 | { |
| | 39 | text: eval("Hus"); |
| | 40 | text-color: black; |
| | 41 | font-size: 9; |
| | 42 | z-index: 1; |
| | 43 | color: #FFF88B; |
| | 44 | fill-color: #FFF88B; |
| | 45 | width: 3; |
| | 46 | dashes: 10,2; |
| | 47 | } |
| | 48 | |
| | 49 | area[building=detached] |
| | 50 | { |
| | 51 | text: eval("Villa"); |
| | 52 | text-color: black; |
| | 53 | font-size: 9; |
| | 54 | z-index: 1; |
| | 55 | color: #FFFD36; |
| | 56 | fill-color: #FFFD36; |
| | 57 | width: 3; |
| | 58 | } |
| | 59 | area[building=semidetached_house] |
| | 60 | { |
| | 61 | text: eval("Parhus"); |
| | 62 | text-color: black; |
| | 63 | font-size: 9; |
| | 64 | z-index: 1; |
| | 65 | color: #FFFC00; |
| | 66 | fill-color: #FFFC00; |
| | 67 | width: 3; |
| | 68 | } |
| | 69 | area[building=terrace] |
| | 70 | { |
| | 71 | text: eval("Radhus"); |
| | 72 | text-color: black; |
| | 73 | font-size: 9; |
| | 74 | z-index: 1; |
| | 75 | color: #FFFC00; |
| | 76 | fill-color: #FFFC00; |
| | 77 | width: 3; |
| | 78 | } |
| | 79 | area[building=apartments] |
| | 80 | { |
| | 81 | text: eval("Lägenhet"); |
| | 82 | text-color: black; |
| | 83 | font-size: 9; |
| | 84 | z-index: 1; |
| | 85 | color: #FF9E00; |
| | 86 | fill-color: #FF9E00; |
| | 87 | width: 3; |
| | 88 | } |
| | 89 | area[building=carport] |
| | 90 | { |
| | 91 | text: eval("Carport"); |
| | 92 | text-color: black; |
| | 93 | font-size: 9; |
| | 94 | z-index: 1; |
| | 95 | color: #A37237; |
| | 96 | fill-color: #A37237; |
| | 97 | width: 3; |
| | 98 | } |
| | 99 | area[building=garage] |
| | 100 | { |
| | 101 | text: eval("Garage"); |
| | 102 | text-color: black; |
| | 103 | font-size: 9; |
| | 104 | z-index: 1; |
| | 105 | color: #A37237; |
| | 106 | fill-color: #A37237; |
| | 107 | width: 3; |
| | 108 | } |
| | 109 | area[building=garages] |
| | 110 | { |
| | 111 | text: eval("Garagelänga"); |
| | 112 | text-color: black; |
| | 113 | font-size: 9; |
| | 114 | z-index: 1; |
| | 115 | color: #A37237; |
| | 116 | fill-color: #A37237; |
| | 117 | width: 3; |
| | 118 | } |
| | 119 | |
| | 120 | area[building=parking] |
| | 121 | { |
| | 122 | text: eval("Parkeringshus"); |
| | 123 | text-color: black; |
| | 124 | font-size: 9; |
| | 125 | z-index: 1; |
| | 126 | color: #A37237; |
| | 127 | fill-color: #A37237; |
| | 128 | width: 3; |
| | 129 | } |
| | 130 | area[building=hotel] |
| | 131 | { |
| | 132 | text: eval("Hotell"); |
| | 133 | text-color: black; |
| | 134 | font-size: 9; |
| | 135 | z-index: 1; |
| | 136 | color: #F26100; |
| | 137 | fill-color: #F26100; |
| | 138 | width: 3; |
| | 139 | } |
| | 140 | |
| | 141 | area[building=commercial] |
| | 142 | { |
| | 143 | text: eval("Kommersiell"); |
| | 144 | text-color: black; |
| | 145 | font-size: 9; |
| | 146 | z-index: 1; |
| | 147 | color: #D76EFF; |
| | 148 | fill-color: #D76EFF; |
| | 149 | width: 3; |
| | 150 | } |
| | 151 | area[building=warehouse] |
| | 152 | { |
| | 153 | text: eval("Lager"); |
| | 154 | text-color: black; |
| | 155 | font-size: 9; |
| | 156 | z-index: 1; |
| | 157 | color: #D76EFF; |
| | 158 | fill-color: #D76EFF; |
| | 159 | width: 3; |
| | 160 | } |
| | 161 | area[building=toilets] |
| | 162 | { |
| | 163 | text: eval("Toalett"); |
| | 164 | text-color: black; |
| | 165 | font-size: 9; |
| | 166 | z-index: 1; |
| | 167 | color: #D76EFF; |
| | 168 | fill-color: #D76EFF; |
| | 169 | width: 3; |
| | 170 | } |
| | 171 | area[building=industrial] |
| | 172 | { |
| | 173 | text: eval("Industri"); |
| | 174 | text-color: black; |
| | 175 | font-size: 9; |
| | 176 | z-index: 1; |
| | 177 | color: #C224FF; |
| | 178 | fill-color: #C224FF; |
| | 179 | width: 3; |
| | 180 | } |
| | 181 | |
| | 182 | area[building=church] |
| | 183 | { |
| | 184 | text: eval("Kyrka"); |
| | 185 | text-color: black; |
| | 186 | font-size: 9; |
| | 187 | z-index: 1; |
| | 188 | color: #9224FF; |
| | 189 | fill-color: #9224FF; |
| | 190 | width: 3; |
| | 191 | } |
| | 192 | area[building=chapel] |
| | 193 | { |
| | 194 | text: eval("Kapell"); |
| | 195 | text-color: black; |
| | 196 | font-size: 9; |
| | 197 | z-index: 1; |
| | 198 | color: #9224FF; |
| | 199 | fill-color: #9224FF; |
| | 200 | width: 3; |
| | 201 | } |
| | 202 | area[building=mosque] |
| | 203 | { |
| | 204 | text: eval("Moské"); |
| | 205 | text-color: black; |
| | 206 | font-size: 9; |
| | 207 | z-index: 1; |
| | 208 | color: #9224FF; |
| | 209 | fill-color: #9224FF; |
| | 210 | width: 3; |
| | 211 | } |
| | 212 | area[building=synagogue] |
| | 213 | { |
| | 214 | text: eval("Synagoga"); |
| | 215 | text-color: black; |
| | 216 | font-size: 9; |
| | 217 | z-index: 1; |
| | 218 | color: #9224FF; |
| | 219 | fill-color: #9224FF; |
| | 220 | width: 3; |
| | 221 | } |
| | 222 | area[building=temple] |
| | 223 | { |
| | 224 | text: eval("Tempel"); |
| | 225 | text-color: black; |
| | 226 | font-size: 9; |
| | 227 | z-index: 1; |
| | 228 | color: #9224FF; |
| | 229 | fill-color: #9224FF; |
| | 230 | width: 3; |
| | 231 | } |
| | 232 | area[building=cathedral] |
| | 233 | { |
| | 234 | text: eval("Domkyrka"); |
| | 235 | text-color: black; |
| | 236 | font-size: 9; |
| | 237 | z-index: 1; |
| | 238 | color: #7D1DDD; |
| | 239 | fill-color: #7D1DDD; |
| | 240 | width: 3; |
| | 241 | } |
| | 242 | |
| | 243 | area[building=retail] |
| | 244 | { |
| | 245 | text: eval("Detaljhandel"); |
| | 246 | text-color: black; |
| | 247 | font-size: 9; |
| | 248 | z-index: 1; |
| | 249 | color: #A5FC4E; |
| | 250 | fill-color: #A5FC4E; |
| | 251 | width: 3; |
| | 252 | } |
| | 253 | |
| | 254 | area[building=supermarket] |
| | 255 | { |
| | 256 | text: eval("Stormarknad"); |
| | 257 | text-color: black; |
| | 258 | font-size: 9; |
| | 259 | z-index: 1; |
| | 260 | color: #A5FC4E; |
| | 261 | fill-color: #A5FC4E; |
| | 262 | width: 3; |
| | 263 | } |
| | 264 | area[building=kiosk] |
| | 265 | { |
| | 266 | text: eval("Kiosk"); |
| | 267 | text-color: black; |
| | 268 | font-size: 9; |
| | 269 | z-index: 1; |
| | 270 | color: #A5FC4E; |
| | 271 | fill-color: #A5FC4E; |
| | 272 | width: 3; |
| | 273 | } |
| | 274 | |
| | 275 | area[building=roof] |
| | 276 | { |
| | 277 | text: eval("Tak"); |
| | 278 | text-color: black; |
| | 279 | font-size: 9; |
| | 280 | z-index: 1; |
| | 281 | color: #CBA371; |
| | 282 | fill-color: #CBA371; |
| | 283 | width: 3; |
| | 284 | } |
| | 285 | |
| | 286 | area[building=hospital] |
| | 287 | { |
| | 288 | text: eval("Sjukhus"); |
| | 289 | text-color: black; |
| | 290 | font-size:10; |
| | 291 | z-index: 1; |
| | 292 | color: #FF5566; |
| | 293 | fill-color: #FF5566; |
| | 294 | width: 3; |
| | 295 | } |
| | 296 | area[building=fire_station] |
| | 297 | { |
| | 298 | text: eval("Brandstation"); |
| | 299 | text-color: black; |
| | 300 | font-size:10; |
| | 301 | z-index: 1; |
| | 302 | color: #FF5566; |
| | 303 | fill-color: #FF5566; |
| | 304 | width: 3; |
| | 305 | } |
| | 306 | area[amenity=hospital] |
| | 307 | { |
| | 308 | color: #FF5566; |
| | 309 | width: 3; |
| | 310 | } |
| | 311 | area[building=school] |
| | 312 | { |
| | 313 | text: eval("Skola"); |
| | 314 | text-color: black; |
| | 315 | font-size: 9; |
| | 316 | z-index: 1; |
| | 317 | color: #884CFF; |
| | 318 | fill-color: #884CFF; |
| | 319 | width: 3; |
| | 320 | } |
| | 321 | area[building=kindergarten] |
| | 322 | { |
| | 323 | text: eval("Förskola"); |
| | 324 | text-color: black; |
| | 325 | font-size: 9; |
| | 326 | z-index: 1; |
| | 327 | color: #884CFF; |
| | 328 | fill-color: #884CFF; |
| | 329 | width: 3; |
| | 330 | } |
| | 331 | area[amenity=school] |
| | 332 | { |
| | 333 | color: #884CFF; |
| | 334 | width: 3; |
| | 335 | } |
| | 336 | area[building=university] |
| | 337 | { |
| | 338 | text: eval("Universitet"); |
| | 339 | text-color: black; |
| | 340 | font-size: 9; |
| | 341 | z-index: 1; |
| | 342 | color: #7834FF; |
| | 343 | fill-color: #7834FF; |
| | 344 | width: 2; |
| | 345 | } |
| | 346 | area[amenity=university] |
| | 347 | { |
| | 348 | color: #7834FF; |
| | 349 | width: 3; |
| | 350 | } |
| | 351 | area[building=civic] |
| | 352 | { |
| | 353 | text: eval("Offentlig"); |
| | 354 | text-color: black; |
| | 355 | font-size: 9; |
| | 356 | z-index: 1; |
| | 357 | color: #FF2238; |
| | 358 | fill-color: #FF2238; |
| | 359 | width: 3; |
| | 360 | dashes: 10,2; |
| | 361 | } |
| | 362 | area[building=train_station] |
| | 363 | { |
| | 364 | text: eval("Station"); |
| | 365 | text-color: black; |
| | 366 | font-size: 9; |
| | 367 | z-index: 1; |
| | 368 | color: #FF2238; |
| | 369 | fill-color: #FF2238; |
| | 370 | width: 3; |
| | 371 | } |
| | 372 | |
| | 373 | area[building=dormitory] |
| | 374 | { |
| | 375 | text: eval("Korridor"); |
| | 376 | text-color: black; |
| | 377 | font-size: 9; |
| | 378 | z-index: 1; |
| | 379 | color: #F07B2D; |
| | 380 | fill-color: #F07B2D; |
| | 381 | width: 3; |
| | 382 | } |
| | 383 | |
| | 384 | area[building=yes][amenity][building!=church][building!=cathedral] |
| | 385 | { |
| | 386 | text: "amenity"; |
| | 387 | text-color: black; |
| | 388 | dashes: 20,4; |
| | 389 | font-size: 10; |
| | 390 | z-index: 1; |
| | 391 | color: #FF2238; |
| | 392 | fill-color: #FF2238; |
| | 393 | width: 3; |
| | 394 | } |
| | 395 | |
| | 396 | area[building=yes][shop] |
| | 397 | { |
| | 398 | text: "affär"; |
| | 399 | text-color: black; |
| | 400 | dashes: 20,4; |
| | 401 | font-size: 10; |
| | 402 | z-index: 1; |
| | 403 | color: #3E43D2; |
| | 404 | fill-color: #3E43D2; |
| | 405 | width: 3; |
| | 406 | } |
| | 407 | |
| | 408 | area[building=yes][office] |
| | 409 | { |
| | 410 | text: "kontor"; |
| | 411 | text-color: black; |
| | 412 | font-size: 10; |
| | 413 | z-index: 1; |
| | 414 | color: #39D237; |
| | 415 | fill-color: #39D237; |
| | 416 | width: 3; |
| | 417 | dashes: 20,4; |
| | 418 | } |
| | 419 | /* highlight wrong schoolbuildings */ |
| | 420 | way[building=yes][amenity=school] |
| | 421 | { |
| | 422 | text: eval("ändra till building=school"); |
| | 423 | font-size: 12; |
| | 424 | z-index: 1; |
| | 425 | color: red; |
| | 426 | width: 5; |
| | 427 | dashes: 20,4; |
| | 428 | dashes-background-color: #FFFF00; |
| | 429 | } |
| | 430 | |
| | 431 | /* highlight wrong church */ |
| | 432 | way[building=yes][amenity=place_of_worship] |
| | 433 | { |
| | 434 | text: eval("ändra till building=church"); |
| | 435 | font-size: 12; |
| | 436 | z-index: 1; |
| | 437 | color: red; |
| | 438 | width: 5; |
| | 439 | dashes: 20,4; |
| | 440 | dashes-background-color: #FFFF00; |
| | 441 | } |
| | 442 | |
| | 443 | }}} |