Changes between Version 4 and Version 7 of Styles/Direction


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Direction

    v4 v7  
    11[[TranslatedPages]]
    22
    3 = [[Image(Ausrichtung.svg,30px,middle,inline)]] Direction
     3= [[Image(Ausrichtung.svg,24,middle,inline,margin-right=20)]] Direction
    44
    55== 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].
     6The mappaint style "Direction" displays the following direction key: [osmwiki:Key:direction direction], [osmwiki:Tag:highway=street_lamp#Typical_attributes light:direction], [osmwiki:Key:camera:direction camera:direction] and [osmwiki:Key:seamark:notice:orientation seamark:notice:orientation].
    77
    8 For ideas/questions/bugs/suggestions or similar please write a message to [https://www.openstreetmap.org/user/Hanikatu ​Hanikatu].
     8For ideas/questions/bugs/suggestions or similar please write a message to [osmwww:user/Hanikatu ​Hanikatu].
    99
    1010Feel free to translate this wiki page into more languages. Already translated languages see top right.
    1111
    12 [[Image(Examples.png)]]
     12[[Image(Examples.png,link=)]]
    1313
    1414=== Note:
     
    2121    title: "Direction";   /* title shown in the menu */
    2222    icon: "Ausrichtung.svg"; /* small icon shown in the menu next to the title */
    23     version: "1.0.[[revision]]_[[date]]";
    24     description: "Shows the direction of object or light.";     
     23    version: "1.1.[[revision]]_[[date]]";
     24    description: "Shows the direction of object, light and water impact.";     
    2525    author: "Hanikatu";
    2626    link: "https://josm.openstreetmap.de/wiki/Styles/Direction";
     
    2929meta[lang=de] {
    3030    title: "Ausrichtung";
    31     description: "Zeigt die Ausrichtung vom Objekt oder Licht an.";
     31    description: "Zeigt die Ausrichtung vom Objekt, Licht und Wasseraufprall an.";
    3232    link: "https://josm.openstreetmap.de/wiki/De:Styles/Direction";
    3333}
     
    4646
    4747
     48/* --------------------- Fehler anzeigen ------------------------ */
     49
    4850node|z17-[direction][highway !~ /^(give_way|stop)/]::randg
    4951{
    5052  /* alles was 'direction' enthält (außer give_way und stop) als Fehler markieren */
    51   /* doto: herausfinden, wie man individuelle Kreise erzeugt */
     53  /* TODO: herausfinden, wie man individuelle Kreise erzeugt */
    5254 
    5355  symbol-shape: square;
     
    5658  z-index:-1;
    5759}
     60
     61
     62/* --------------------- Richtung anzeigen ------------------------ */
    5863
    5964node|z17-[direction =~ /[0-9]/][direction !~ /[-]/]::randg{
     
    7782}
    7883
     84
     85/* --------------------- Flutlichtrichtung anzeigen ------------------------ */
     86
    7987node|z17-[light:direction =~ /[0-9]/][light:direction !~ /[-]/]::randg{
    8088  /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */
     
    8795}
    8896
    89 node|z17-[direction =~ /[nsweNSWE]/][direction !~ /[^nsweNSWE]/]::randg{
     97node|z17-[light:direction =~ /[nsweNSWE]/][light:direction !~ /[^nsweNSWE]/]::randg{
    9098  /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */
    9199 
    92100  icon-image: "Flutlicht.svg";
    93101  z-index:-100;
    94   icon-width:20; 
     102  icon-width:50; 
    95103 
    96104  icon-rotation: cardinal_to_radians( tag("light:direction") );
    97105}
     106
     107
     108/* --------------------- Kamerarichtung anzeigen ------------------------ */
     109
     110node|z17-[camera:direction =~ /[0-9]/][camera:direction !~ /[-]/]::randg{
     111  /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */
     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
     120node|z17-[camera:direction =~ /[nsweNSWE]/][camera:direction !~ /[^nsweNSWE]/]::randg{
     121  /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */
     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
     130
     131/* --------------------- Wasseraufprallrichtung anzeigen ------------------------ */
     132
     133node|z17-[seamark:notice:orientation =~ /[0-9]/][seamark:notice:orientation !~ /[-]/]::randg{
     134  /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */
     135 
     136  icon-image: "Ausrichtung.svg";
     137  z-index:-100;
     138  icon-width:20; 
     139 
     140  icon-rotation: degree_to_radians( tag("seamark:notice:orientation") );
     141}
     142
     143node|z17-[seamark:notice:orientation =~ /[nsweNSWE]/][seamark:notice:orientation !~ /[^nsweNSWE]/]::randg{
     144  /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */
     145 
     146  icon-image: "Ausrichtung.svg";
     147  z-index:-100;
     148  icon-width:20; 
     149 
     150  icon-rotation: cardinal_to_radians( tag("seamark:notice:orientation") );
     151}
    98152}}}