| | 1 | {{{ |
| | 2 | #!style type="mapcss" |
| | 3 | meta { |
| | 4 | title: "Conscriptionnumbers/streetnumbers"; |
| | 5 | version: "0.2"; |
| | 6 | description: "Displays addresses using Czech/Slovak address system"; |
| | 7 | link: "http://wiki.openstreetmap.org/wiki/CS:WikiProject_Czech_Republic/Address_system"; |
| | 8 | author: "jose1711"; |
| | 9 | } |
| | 10 | |
| | 11 | meta[lang=sk]{ |
| | 12 | title: "Súpisné/orientačné čísla"; |
| | 13 | description: "Zobrazenie adries podľa českého/slovenského systému"; |
| | 14 | } |
| | 15 | |
| | 16 | meta[lang=cs]{ |
| | 17 | title: "Čísla popisná/orientační"; |
| | 18 | description: "Zobrazení adres dle českého/slovenského schématu"; |
| | 19 | } |
| | 20 | |
| | 21 | /* address on a node */ |
| | 22 | node|z18-[addr:streetnumber][!addr:conscriptionnumber] { |
| | 23 | font-family: "DejaVu Sans Book"; |
| | 24 | font-size: 12; |
| | 25 | text: "addr:streetnumber"; |
| | 26 | text-color: black; |
| | 27 | text-halo-radius: 2; |
| | 28 | text-wrap-width: 10; |
| | 29 | text-position: line; |
| | 30 | } |
| | 31 | |
| | 32 | node|z18-[addr:streetnumber][addr:conscriptionnumber] { |
| | 33 | font-family: "DejaVu Sans Book"; |
| | 34 | font-size: 12; |
| | 35 | text: concat(eval(tag("addr:streetnumber")),"/",eval(tag("addr:conscriptionnumber"))); |
| | 36 | text-color: black; |
| | 37 | text-halo-radius: 2; |
| | 38 | text-wrap-width: 10; |
| | 39 | text-position: line; |
| | 40 | } |
| | 41 | |
| | 42 | /* address on a building */ |
| | 43 | area|z18-[addr:streetnumber][!addr:conscriptionnumber] { |
| | 44 | font-family: "DejaVu Sans Book"; |
| | 45 | font-size: 14; |
| | 46 | text: "addr:streetnumber"; |
| | 47 | text-color: white; |
| | 48 | text-halo-radius: 2; |
| | 49 | fill-color: white; |
| | 50 | text-wrap-width: 10; |
| | 51 | text-position: center; |
| | 52 | } |
| | 53 | |
| | 54 | area|z18-[addr:streetnumber][addr:conscriptionnumber] { |
| | 55 | font-family: "DejaVu Sans Book"; |
| | 56 | font-size: 14; |
| | 57 | text: concat(eval(tag("addr:streetnumber")),"/",eval(tag("addr:conscriptionnumber"))); |
| | 58 | text-color: white; |
| | 59 | text-halo-radius: 2; |
| | 60 | fill-color: white; |
| | 61 | text-wrap-width: 10; |
| | 62 | text-position: center; |
| | 63 | } |
| | 64 | }}} |