| | 1 | {{{ |
| | 2 | #!style type="mapcss" |
| | 3 | |
| | 4 | meta |
| | 5 | { |
| | 6 | title: "Serbian Street Names and Refs Colouring"; |
| | 7 | icon: "error_small.png"; |
| | 8 | shortdescription: "Colouring helping editing names and refs on streets in Serbia"; |
| | 9 | description: "This MapCSS style colors ways according to tags name and ref:RS:street, Style is supposed to be used combined with other styles (Tested in JOSM)"; |
| | 10 | version: "[[revision]]_[[date]]"; |
| | 11 | author: "Pedja"; |
| | 12 | min-josm-version: 7110; |
| | 13 | } |
| | 14 | |
| | 15 | /* |
| | 16 | This helps visualy track editing status of streets by colouring them: |
| | 17 | |
| | 18 | Gray: |
| | 19 | - Everything that is not important for editing street names and refs |
| | 20 | - Ways that have no name but also have noname tag set |
| | 21 | |
| | 22 | Orange: |
| | 23 | - Streets that have no name set, but should |
| | 24 | |
| | 25 | OrangeRed: |
| | 26 | - Streets that have name set but ref:RS:street is not set |
| | 27 | |
| | 28 | Green |
| | 29 | - Streets that have both name and ref set. |
| | 30 | |
| | 31 | |
| | 32 | */ |
| | 33 | |
| | 34 | way[!highway] { |
| | 35 | color : Gray; |
| | 36 | width:0.5; |
| | 37 | } |
| | 38 | |
| | 39 | way[highway] { |
| | 40 | color : Gray; |
| | 41 | width:5; |
| | 42 | } |
| | 43 | |
| | 44 | |
| | 45 | way[highway][!name][noname] { |
| | 46 | color : Gray; |
| | 47 | } |
| | 48 | |
| | 49 | |
| | 50 | |
| | 51 | way[highway][!name][!noname] { |
| | 52 | color : Orange; |
| | 53 | } |
| | 54 | |
| | 55 | |
| | 56 | way[highway][name] { |
| | 57 | color : OrangeRed; |
| | 58 | } |
| | 59 | |
| | 60 | way[highway][name][ref:RS:street] { |
| | 61 | color : Green; |
| | 62 | width:5; |
| | 63 | } |
| | 64 | |
| | 65 | |
| | 66 | }}} |