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


Ignore:
Timestamp:
2025-04-10T17:23:22+02:00 (3 weeks ago)
Author:
stoecker
Comment:

Only link source code

Legend:

Unmodified
Added
Removed
Modified
  • Eo:Styles/Direction

    v1 v2  
    1616
    1717== Kodo
    18 {{{
    19 #!style type="mapcss"
    20 meta {
    21     title: "Direkto";   /* titolo montrata en la menuo */
    22     icon: "Ausrichtung.svg"; /* malgranda ikono montrata en la menuo apud la titolo */
    23     version: "1.1.[[revision]]_[[date]]";
    24     description: "Montras la direkton de objekto aŭ lumo.";     
    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+ thick
    42 
    43    texts 16-20 short
    44    20- normal
    45 */
    46 
    47 
    48 /* --------------------- Montri erarojn ------------------------ */
    49 
    50 node|z17-[direction][highway !~ /^(give_way|stop)/]::randg
    51 {
    52   /* ĉio, kio enhavas 'direction' (krom give_way kaj stop), markiĝas kiel eraro */
    53   /* doto: trovi kiel krei individuajn cirklojn */
    54  
    55   symbol-shape: square;
    56   symbol-fill-color:orange;
    57   symbol-size:30;
    58   z-index:-1;
    59 }
    60 
    61 
    62 /* --------------------- Montri direkton ------------------------ */
    63 
    64 node|z17-[direction =~ /[0-9]/][direction !~ /[-]/]::randg{
    65   /* nur tutaj gradoj - eraro estas nuligita */
    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 tutaj ĉielaj direktoj - eraro estas nuligita */
    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 /* --------------------- Montri lumfaskon ------------------------ */
    86 
    87 node|z17-[light:direction =~ /[0-9]/][light:direction !~ /[-]/]::randg{
    88   /* nur tutaj gradoj - eraro estas nuligita */
    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 tutaj ĉielaj direktoj - eraro estas nuligita */
    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 }
     19[wiki:Styles/Direction]