Changes between Version 4 and Version 5 of Styles/Direction
- Timestamp:
- 2021-06-06T12:53:56+02:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Direction
v4 v5 4 4 5 5 == Description 6 The mappaint style "Direction" displays the following direction key: [https://wiki.openstreetmap.org/wiki/Key:direction direction] and[https://wiki.openstreetmap.org/wiki/Tag:highway=street_lamp#Typical_attributes light:direction].6 The mappaint style "Direction" displays the following direction key: [https://wiki.openstreetmap.org/wiki/Key:direction direction], [https://wiki.openstreetmap.org/wiki/Tag:highway=street_lamp#Typical_attributes light:direction] and [https://wiki.openstreetmap.org/wiki/Key:camera:direction camera:direction]. 7 7 8 8 For ideas/questions/bugs/suggestions or similar please write a message to [https://www.openstreetmap.org/user/Hanikatu Hanikatu]. … … 21 21 title: "Direction"; /* title shown in the menu */ 22 22 icon: "Ausrichtung.svg"; /* small icon shown in the menu next to the title */ 23 version: "1. 0.[[revision]]_[[date]]";23 version: "1.1.[[revision]]_[[date]]"; 24 24 description: "Shows the direction of object or light."; 25 25 author: "Hanikatu"; … … 46 46 47 47 48 /* --------------------- Fehler anzeigen ------------------------ */ 49 48 50 node|z17-[direction][highway !~ /^(give_way|stop)/]::randg 49 51 { … … 56 58 z-index:-1; 57 59 } 60 61 62 /* --------------------- Richtung anzeigen ------------------------ */ 58 63 59 64 node|z17-[direction =~ /[0-9]/][direction !~ /[-]/]::randg{ … … 77 82 } 78 83 84 85 /* --------------------- Flutlicht anzeigen ------------------------ */ 86 79 87 node|z17-[light:direction =~ /[0-9]/][light:direction !~ /[-]/]::randg{ 80 88 /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */ … … 87 95 } 88 96 89 node|z17-[direction =~ /[nsweNSWE]/][direction !~ /[^nsweNSWE]/]::randg{ 97 node|z17-[light:direction =~ /[nsweNSWE]/][light:direction !~ /[^nsweNSWE]/]::randg{ 90 98 /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */ 91 99 92 100 icon-image: "Flutlicht.svg"; 93 101 z-index:-100; 94 icon-width: 20;102 icon-width:50; 95 103 96 104 icon-rotation: cardinal_to_radians( tag("light:direction") ); 97 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 } 98 130 }}}
