Changes between Version 1 and Version 2 of El:Styles/Direction


Ignore:
Timestamp:
2025-05-05T14:23:15+02:00 (11 days ago)
Author:
stoecker
Comment:

Drop code

Legend:

Unmodified
Added
Removed
Modified
  • El:Styles/Direction

    v1 v2  
    1616
    1717== Κώδικας
    18 {{{
    19 #!style type="mapcss"
    20 meta {
    21     title: "Direction";   /* title shown in the menu */
    22     icon: "Ausrichtung.svg"; /* small icon shown in the menu next to the title */
    23     version: "1.1.[[revision]]_[[date]]";
    24     description: "Shows the direction of object or light.";     
    25     author: "Hanikatu";
    26     link: "https://josm.openstreetmap.de/wiki/Styles/Direction";
    27 }
    2818
    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+ dick
    42 
    43    texts 16-20 short
    44    20- normal
    45 */
    46 
    47 
    48 /* --------------------- Fehler anzeigen ------------------------ */
    49 
    50 node|z17-[direction][highway !~ /^(give_way|stop)/]::randg
    51 {
    52   /* alles was 'direction' enthält (außer give_way und stop) als Fehler markieren */
    53   /* doto: herausfinden, wie man individuelle Kreise erzeugt */
    54  
    55   symbol-shape: square;
    56   symbol-fill-color:orange;
    57   symbol-size:30;
    58   z-index:-1;
    59 }
    60 
    61 
    62 /* --------------------- Richtung anzeigen ------------------------ */
    63 
    64 node|z17-[direction =~ /[0-9]/][direction !~ /[-]/]::randg{
    65   /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */
    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   /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */
    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 /* --------------------- Flutlicht anzeigen ------------------------ */
    86 
    87 node|z17-[light:direction =~ /[0-9]/][light:direction !~ /[-]/]::randg{
    88   /* nur ganze Grad-Zahlen - Fehler wird aufgehoben */
    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   /* nur ganze Himmelsrichtungen - Fehler wird aufgehoben */
    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 
    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 }
    130 }}}
     19[[wiki:Styles/Direction]]