| | 1 | [[TranslatedPages]] |
| | 2 | |
| | 3 | = colour tag = |
| | 4 | [[PageOutline(2-9)]] |
| | 5 | |
| | 6 | == Description == |
| | 7 | |
| | 8 | The mappaint style "colour tag" displays ways in the colour of their colour tag. Supprted formats are 6 digit RGB hexadecimal (#112233), 3 digit RGB hexadecimal (#123) and CSS color names (green). |
| | 9 | |
| | 10 | For ideas/questions/bugs/suggestions or similar please write a message to [osmwww:user/Klumbumbus Klumbumbus]. |
| | 11 | |
| | 12 | Feel free to translate this wiki page into more languages. Already translated languages see top right. |
| | 13 | |
| | 14 | == Code == |
| | 15 | {{{ |
| | 16 | #!style type="mapcss" |
| | 17 | meta { |
| | 18 | title: "colour tag"; |
| | 19 | version: "[[revision]]_[[date]]"; |
| | 20 | description: "Displays ways in the colour of their colour tag. Supprted formats are 6 digit RGB hexadecimal (#112233), 3 digit RGB hexadecimal (#123) and CSS color names (green)."; |
| | 21 | /* icon: "colourtag.svg"; */ |
| | 22 | author: "Klumbumbus"; |
| | 23 | link: "http://josm.openstreetmap.de/wiki/Styles/ColourTag"; |
| | 24 | /* min-josm-version: "????"; not sure*/ |
| | 25 | } |
| | 26 | |
| | 27 | meta[lang=de] { |
| | 28 | title: "Farb-Merkmal"; |
| | 29 | description: "Zeigt Linien in der Farbe ihres colour-Merkmals an. Unterstützte Formate sind RGB-hexadezimal mit 6 Zeichen (#112233), RGB-hexadezimal mit 3 Zeichen (#123) und CSS Farbnamen (green)."; |
| | 30 | link: "http://josm.openstreetmap.de/wiki/De:Styles/ColourTag"; |
| | 31 | } |
| | 32 | |
| | 33 | |
| | 34 | way[colour] { |
| | 35 | width: 3; |
| | 36 | color: tag(colour); |
| | 37 | } |
| | 38 | }}} |