Changes between Version 6 and Version 7 of Styles/Direction


Ignore:
Timestamp:
2026-07-19T15:26:44+02:00 (3 days ago)
Author:
Hanikatu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Direction

    v6 v7  
    44
    55== Description
    6 The mappaint style "Direction" displays the following direction key: [osmwiki:Key:direction direction], [osmwiki:Tag:highway=street_lamp#Typical_attributes light:direction] and [osmwiki:Key:camera:direction camera: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
    88For ideas/questions/bugs/suggestions or similar please write a message to [osmwww:user/Hanikatu ​Hanikatu].
     
    2222    icon: "Ausrichtung.svg"; /* small icon shown in the menu next to the title */
    2323    version: "1.1.[[revision]]_[[date]]";
    24     description: "Shows the direction of object or light.";     
     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}
     
    5151{
    5252  /* alles was 'direction' enthält (außer give_way und stop) als Fehler markieren */
    53   /* doto: herausfinden, wie man individuelle Kreise erzeugt */
     53  /* TODO: herausfinden, wie man individuelle Kreise erzeugt */
    5454 
    5555  symbol-shape: square;
     
    8383
    8484
    85 /* --------------------- Flutlicht anzeigen ------------------------ */
     85/* --------------------- Flutlichtrichtung anzeigen ------------------------ */
    8686
    8787node|z17-[light:direction =~ /[0-9]/][light:direction !~ /[-]/]::randg{
     
    104104  icon-rotation: cardinal_to_radians( tag("light:direction") );
    105105}
    106 
    107106
    108107
     
    128127  icon-rotation: cardinal_to_radians( tag("camera:direction") );
    129128}
     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}
    130152}}}