| | 6 | |
| | 7 | {{{ |
| | 8 | #!style type="mapcss" |
| | 9 | meta { |
| | 10 | title: "Color ways"; |
| | 11 | description: "Choose your preferred color and line width of building outlines for better visibility on different backgrounds. Also highways and waterways have clearer colors"; |
| | 12 | version: "0.1.[[revision]]_[[date]]"; |
| | 13 | author: "Martien van de Griendt"; |
| | 14 | link: "https://josm.openstreetmap.de/wiki/Styles/ColorWays"; |
| | 15 | } |
| | 16 | |
| | 17 | /* Setting Options */ |
| | 18 | |
| | 19 | setting::colordisplay { |
| | 20 | type: color; |
| | 21 | label: tr("Color used for displaying buildings"); |
| | 22 | default: green; |
| | 23 | } |
| | 24 | |
| | 25 | setting::building_line_width { |
| | 26 | type: double; |
| | 27 | label: tr("Choose line width of building"); |
| | 28 | default: 2; |
| | 29 | } |
| | 30 | |
| | 31 | |
| | 32 | /* Settings */ |
| | 33 | |
| | 34 | /* Buildings */ |
| | 35 | |
| | 36 | way[building] { |
| | 37 | color: setting("colordisplay"); |
| | 38 | } |
| | 39 | |
| | 40 | way[building] { |
| | 41 | width: setting("building_line_width"); |
| | 42 | } |
| | 43 | |
| | 44 | |
| | 45 | /* Highways */ |
| | 46 | |
| | 47 | way[highway=unclassified] |
| | 48 | { |
| | 49 | width: 4; |
| | 50 | color: white; |
| | 51 | } |
| | 52 | |
| | 53 | way[highway=track] |
| | 54 | { |
| | 55 | width: 4; |
| | 56 | color: peru; |
| | 57 | dashes: 12,9; |
| | 58 | dashes-background-color: springgreen; |
| | 59 | } |
| | 60 | |
| | 61 | way[highway=service] |
| | 62 | { |
| | 63 | width: 3; |
| | 64 | color: aqua; |
| | 65 | } |
| | 66 | |
| | 67 | way[highway=residential] |
| | 68 | { |
| | 69 | width: 2; |
| | 70 | color: Aquamarine ; |
| | 71 | } |
| | 72 | |
| | 73 | /* Waterways */ |
| | 74 | |
| | 75 | way[waterway=stream] |
| | 76 | { |
| | 77 | |
| | 78 | width: 2; |
| | 79 | color: DeepSkyBlue; /* #00ace6 */ |
| | 80 | |
| | 81 | } |
| | 82 | |
| | 83 | way[waterway=river] |
| | 84 | { |
| | 85 | |
| | 86 | width: 6; |
| | 87 | |
| | 88 | } |
| | 89 | |
| | 90 | |
| | 91 | }}} |