| Version 1 (modified by , 10 months ago) ( diff ) |
|---|
Retning
Beskrivelse
Kartstilen "Retning" viser følgende retningsnøkler: retning, lys:retning og kamera:retning.
For ideer/spørsmål/feil/forslag eller lignende, vennligst send en melding til Hanikatu.
Du er velkommen til å oversette denne wikisiden til flere språk. Allerede oversatte språk finnes øverst til høyre.
Merknad:
Kan bare vise ett flomlys per node.
Kode
meta { title: "Retning"; /* tittel vist i menyen */ icon: "Ausrichtung.svg"; /* lite ikon vist i menyen ved siden av tittelen */ version: "1.1.2_2025-04-10"; description: "Viser retningen til objektet eller lyset."; author: "Hanikatu"; link: "https://josm.openstreetmap.de/wiki/Styles/Direction"; } meta[lang=de] { title: "Ausrichtung"; description: "Zeigt die Ausrichtung vom Objekt oder Licht an."; link: "https://josm.openstreetmap.de/wiki/De:Styles/Direction"; } /* zoomlevels: icons 21+ great below 20 smaller icons ways: -19 narrow 20+ thick texts 16-20 short 20- normal */ /* --------------------- Vis feil ------------------------ */ node|z17-[direction][highway !~ /^(give_way|stop)/]::randg { /* alt som inneholder 'direction' (unntatt give_way og stop) markeres som feil */ /* doto: finne ut hvordan man lager individuelle sirkler */ symbol-shape: square; symbol-fill-color:orange; symbol-size:30; z-index:-1; } /* --------------------- Vis retning ------------------------ */ node|z17-[direction =~ /[0-9]/][direction !~ /[-]/]::randg{ /* bare hele grader - feil blir opphevet */ icon-image: "Ausrichtung.svg"; z-index:-100; icon-width:20; icon-rotation: degree_to_radians( tag("direction") ); } node|z17-[direction =~ /[nsweNSWE]/][direction !~ /[^nsweNSWE]/]::randg{ /* bare hele himmelretninger - feil blir opphevet */ icon-image: "Ausrichtung.svg"; z-index:-100; icon-width:20; icon-rotation: cardinal_to_radians( tag("direction") ); } /* --------------------- Vis flomlys ------------------------ */ node|z17-[light:direction =~ /[0-9]/][light:direction !~ /[-]/]::randg{ /* bare hele grader - feil blir opphevet */ icon-image: "Flutlicht.svg"; z-index:-100; icon-width:50; icon-rotation: degree_to_radians( tag("light:direction") ); } node|z17-[light:direction =~ /[nsweNSWE]/][light:direction !~ /[^nsweNSWE]/]::randg{ /* bare hele himmelretninger - feil blir opphevet */ icon-image: "Flutlicht.svg"; z-index:-100; icon-width:50; icon-rotation: cardinal_to_radians( tag("light:direction") ); } /* --------------------- Vis kameraretning ------------------------ */ node|z17-[camera:direction =~ /[0-9]/][camera:direction !~ /[-]/]::randg{ /* bare hele grader - feil blir opphevet */ icon-image: "Ausrichtung.svg"; z-index:-100; icon-width:20; icon-rotation: degree_to_radians( tag("camera:direction") ); } node|z17-[camera:direction =~ /[nsweNSWE]/][camera:direction !~ /[^nsweNSWE]/]::randg{ /* bare hele himmelretninger - feil blir opphevet */ icon-image: "Ausrichtung.svg"; z-index:-100; icon-width:20; icon-rotation: cardinal_to_radians( tag("camera:direction") ); }
Note:
See TracWiki
for help on using the wiki.


