| 29 | | meta[lang=de] { |
| 30 | | title: "Ausrichtung"; |
| 31 | | description: "Zeigt die Ausrichtung vom Objekt oder Licht an."; |
| 32 | | link: "https://josm.openstreetmap.de/wiki/De:Styles/Direction"; |
| 33 | | } |
| 34 | | |
| 35 | | /* |
| 36 | | zoomlevels: |
| 37 | | icons 21+ great |
| 38 | | below 20 smaller icons |
| 39 | | |
| 40 | | ways: -19 narrow |
| 41 | | 20+ dick |
| 42 | | |
| 43 | | texts 16-20 short |
| 44 | | 20- normal |
| 45 | | */ |
| 46 | | |
| 47 | | |
| 48 | | /* --------------------- Fehler anzeigen ------------------------ */ |
| 49 | | |
| 50 | | node|z17-[direction][highway !~ /^(give_way|stop)/]::randg |
| 51 | | { |
| 52 | | /* alles was 'direction' enthält (außer give_way und stop) als Fehler markieren */ |
| 53 | | /* doto: herausfinden, wie man individuelle Kreise erzeugt */ |
| 54 | | |
| 55 | | symbol-shape: square; |
| 56 | | symbol-fill-color:orange; |
| 57 | | symbol-size:30; |
| 58 | | z-index:-1; |
| 59 | | } |
| 60 | | |
| 61 | | |
| 62 | | /* --------------------- Richtung anzeigen ------------------------ */ |
| 63 | | |
| 64 | | node|z17-[direction =~ /[0-9]/][direction !~ /[-]/]::randg{ |
| 65 | | /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */ |
| 66 | | |
| 67 | | icon-image: "Ausrichtung.svg"; |
| 68 | | z-index:-100; |
| 69 | | icon-width:20; |
| 70 | | |
| 71 | | icon-rotation: degree_to_radians( tag("direction") ); |
| 72 | | } |
| 73 | | |
| 74 | | node|z17-[direction =~ /[nsweNSWE]/][direction !~ /[^nsweNSWE]/]::randg{ |
| 75 | | /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */ |
| 76 | | |
| 77 | | icon-image: "Ausrichtung.svg"; |
| 78 | | z-index:-100; |
| 79 | | icon-width:20; |
| 80 | | |
| 81 | | icon-rotation: cardinal_to_radians( tag("direction") ); |
| 82 | | } |
| 83 | | |
| 84 | | |
| 85 | | /* --------------------- Flutlicht anzeigen ------------------------ */ |
| 86 | | |
| 87 | | node|z17-[light:direction =~ /[0-9]/][light:direction !~ /[-]/]::randg{ |
| 88 | | /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */ |
| 89 | | |
| 90 | | icon-image: "Flutlicht.svg"; |
| 91 | | z-index:-100; |
| 92 | | icon-width:50; |
| 93 | | |
| 94 | | icon-rotation: degree_to_radians( tag("light:direction") ); |
| 95 | | } |
| 96 | | |
| 97 | | node|z17-[light:direction =~ /[nsweNSWE]/][light:direction !~ /[^nsweNSWE]/]::randg{ |
| 98 | | /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */ |
| 99 | | |
| 100 | | icon-image: "Flutlicht.svg"; |
| 101 | | z-index:-100; |
| 102 | | icon-width:50; |
| 103 | | |
| 104 | | icon-rotation: cardinal_to_radians( tag("light:direction") ); |
| 105 | | } |
| 106 | | |
| 107 | | |
| 108 | | |
| 109 | | /* --------------------- Kamerarichtung anzeigen ------------------------ */ |
| 110 | | |
| 111 | | node|z17-[camera:direction =~ /[0-9]/][camera:direction !~ /[-]/]::randg{ |
| 112 | | /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */ |
| 113 | | |
| 114 | | icon-image: "Ausrichtung.svg"; |
| 115 | | z-index:-100; |
| 116 | | icon-width:20; |
| 117 | | |
| 118 | | icon-rotation: degree_to_radians( tag("camera:direction") ); |
| 119 | | } |
| 120 | | |
| 121 | | node|z17-[camera:direction =~ /[nsweNSWE]/][camera:direction !~ /[^nsweNSWE]/]::randg{ |
| 122 | | /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */ |
| 123 | | |
| 124 | | icon-image: "Ausrichtung.svg"; |
| 125 | | z-index:-100; |
| 126 | | icon-width:20; |
| 127 | | |
| 128 | | icon-rotation: cardinal_to_radians( tag("camera:direction") ); |
| 129 | | } |
| 130 | | }}} |
| | 19 | [[wiki:Styles/Direction]] |