| | 1 | [[TranslatedPages(revision=6)]] |
| | 2 | |
| | 3 | = [[Image(Styles/Direction:Ausrichtung.svg,24,middle,inline,margin-right=20)]] Retning |
| | 4 | |
| | 5 | == Beskrivelse |
| | 6 | Kartstilen "Retning" viser følgende retningsnøkler: [osmwiki:Key:direction retning], [osmwiki:Tag:highway=street_lamp#Typical_attributes lys:retning] og [osmwiki:Key:camera:direction kamera:retning]. |
| | 7 | |
| | 8 | For ideer/spørsmål/feil/forslag eller lignende, vennligst send en melding til [osmwww:user/Hanikatu Hanikatu]. |
| | 9 | |
| | 10 | Du er velkommen til å oversette denne wikisiden til flere språk. Allerede oversatte språk finnes øverst til høyre. |
| | 11 | |
| | 12 | [[Image(Styles/Direction:Examples.png,link=)]] |
| | 13 | |
| | 14 | === Merknad: |
| | 15 | Kan bare vise ett flomlys per node. |
| | 16 | |
| | 17 | == Kode |
| | 18 | {{{ |
| | 19 | #!style type="mapcss" |
| | 20 | meta { |
| | 21 | title: "Retning"; /* tittel vist i menyen */ |
| | 22 | icon: "Ausrichtung.svg"; /* lite ikon vist i menyen ved siden av tittelen */ |
| | 23 | version: "1.1.[[revision]]_[[date]]"; |
| | 24 | description: "Viser retningen til objektet eller lyset."; |
| | 25 | author: "Hanikatu"; |
| | 26 | link: "https://josm.openstreetmap.de/wiki/Styles/Direction"; |
| | 27 | } |
| | 28 | |
| | 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+ thick |
| | 42 | |
| | 43 | texts 16-20 short |
| | 44 | 20- normal |
| | 45 | */ |
| | 46 | |
| | 47 | |
| | 48 | /* --------------------- Vis feil ------------------------ */ |
| | 49 | |
| | 50 | node|z17-[direction][highway !~ /^(give_way|stop)/]::randg |
| | 51 | { |
| | 52 | /* alt som inneholder 'direction' (unntatt give_way og stop) markeres som feil */ |
| | 53 | /* doto: finne ut hvordan man lager individuelle sirkler */ |
| | 54 | |
| | 55 | symbol-shape: square; |
| | 56 | symbol-fill-color:orange; |
| | 57 | symbol-size:30; |
| | 58 | z-index:-1; |
| | 59 | } |
| | 60 | |
| | 61 | |
| | 62 | /* --------------------- Vis retning ------------------------ */ |
| | 63 | |
| | 64 | node|z17-[direction =~ /[0-9]/][direction !~ /[-]/]::randg{ |
| | 65 | /* bare hele grader - feil blir opphevet */ |
| | 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 | /* bare hele himmelretninger - feil blir opphevet */ |
| | 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 | /* --------------------- Vis flomlys ------------------------ */ |
| | 86 | |
| | 87 | node|z17-[light:direction =~ /[0-9]/][light:direction !~ /[-]/]::randg{ |
| | 88 | /* bare hele grader - feil blir opphevet */ |
| | 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 | /* bare hele himmelretninger - feil blir opphevet */ |
| | 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 | /* --------------------- Vis kameraretning ------------------------ */ |
| | 109 | |
| | 110 | node|z17-[camera:direction =~ /[0-9]/][camera:direction !~ /[-]/]::randg{ |
| | 111 | /* bare hele grader - feil blir opphevet */ |
| | 112 | |
| | 113 | icon-image: "Ausrichtung.svg"; |
| | 114 | z-index:-100; |
| | 115 | icon-width:20; |
| | 116 | |
| | 117 | icon-rotation: degree_to_radians( tag("camera:direction") ); |
| | 118 | } |
| | 119 | |
| | 120 | node|z17-[camera:direction =~ /[nsweNSWE]/][camera:direction !~ /[^nsweNSWE]/]::randg{ |
| | 121 | /* bare hele himmelretninger - feil blir opphevet */ |
| | 122 | |
| | 123 | icon-image: "Ausrichtung.svg"; |
| | 124 | z-index:-100; |
| | 125 | icon-width:20; |
| | 126 | |
| | 127 | icon-rotation: cardinal_to_radians( tag("camera:direction") ); |
| | 128 | } |
| | 129 | }}} |