Changes between Version 4 and Version 10 of Styles/Incline


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

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Incline

    v4 v10  
    11[[TranslatedPages]]
    22
    3 = [[Image(incline_icon.svg,36,middle,inline)]] Incline =
     3= [[Image(incline_icon.svg,inline,48,middle,margin-right=20)]] Incline =
    44[[PageOutline(2-9)]]
    55
     
    1010You can adjust the colours of the arrows in the preference window of JOSM.
    1111
    12 You can use the Incline mappaint style together with the default JOSM internal mappaint style. You can display the arrows one zoom step earlier by changing the [[Help/Dialog/MapPaint/StyleSettings|style setting]] of this style.
     12You can use the Incline mappaint style together with the default JOSM internal mappaint style. You can display the arrows one zoom step earlier by changing the [wikitr:/Help/Dialog/MapPaint/StyleSettings style setting] of this style.
    1313
    1414For ideas/questions/bugs/suggestions or similar please write a message to [osmwww:user/Klumbumbus Klumbumbus].
     
    1616Feel free to translate this wiki page into more languages. Already translated languages see top right.
    1717
    18 Note that the up arrow is always above the node and the down arrow always below the node, independent from the cardinal direction of the way. So don't be confused (see last example in the image below).
     18Note that the up arrow is always above the node and the down arrow always below the node, independent from the cardinal direction of the way. So don't be confused (see first and fourth example from the left in the image below).
    1919
    2020[[Image(example.png)]]
     
    2424== Changelog ==
    2525^(Latest change first)^
    26 ==== Version 1.0.x ====
     26==== Version 2.1 ====
     27* made background of icon transparent
     28==== Version 2.0 ====
     29* display incline=0° and incline=0% (and variants like 0.0% or 0.00°) with yellow left right arrows instead of red/green up/down arrows
     30* don't display wrong values with several units, e.g. incline=5%%
     31* don't display wrong values incline=0.% and incline=0.°
     32* remove duplicate code
     33==== Version 1.0 ====
    2734* inital version
    2835
     
    3340meta {
    3441    title: "Incline";
    35     version: "1.0.[[revision]]_[[date]]";
     42    version: "2.1.[[revision]]_[[date]]";
    3643    description: "Display of up/down arrows at the first and last node of ways with incline=*.";
    3744    icon: "incline_icon.svg";
     
    5562
    5663/* evaluate the incline tags */
    57 way[highway][incline][incline =~ /^(up|([0-9]+\.?[0-9]*)[%°]+)$/] >[index=-1] node::incline_down_layer,
    58 way[highway][incline][incline =~ /^(down|-([0-9]+\.?[0-9]*)[%°]+)$/] >[index=1] node::incline_down_layer {
     64way[highway][incline][incline =~ /^(up|([0-9]+(\.?[0-9]+)?)[%°])$/][incline !~ /^((0(\.0+)?)[%°])$/] >[index=-1] node::incline_down_layer,
     65way[highway][incline][incline =~ /^(down|-([0-9]+(\.?[0-9]+)?)[%°])$/][incline !~ /^((0(\.0+)?)[%°])$/] >[index=1] node::incline_down_layer {
    5966    set incline_down;
    6067}
    6168
    62 way[highway][incline][incline =~ /^(up|([0-9]+\.?[0-9]*)[%°]+)$/] >[index=1] node::incline_up_layer,
    63 way[highway][incline][incline =~ /^(down|-([0-9]+\.?[0-9]*)[%°]+)$/] >[index=-1] node::incline_up_layer {
     69way[highway][incline][incline =~ /^(up|([0-9]+(\.?[0-9]+)?)[%°])$/][incline !~ /^((0(\.0+)?)[%°])$/] >[index=1] node::incline_up_layer,
     70way[highway][incline][incline =~ /^(down|-([0-9]+(\.?[0-9]+)?)[%°])$/][incline !~ /^((0(\.0+)?)[%°])$/] >[index=-1] node::incline_up_layer {
    6471    set incline_up;
     72}
     73
     74way[highway][incline][incline =~ /^((0(\.0+)?)[%°])$/] >[index=-1] node::incline_zero_layer,
     75way[highway][incline][incline =~ /^((0(\.0+)?)[%°])$/] >[index=1] node::incline_zero_layer {
     76    set incline_zero;
    6577}
    6678
    6779/* display the arrow signs */
    6880node|z19[setting("incline_z19")].incline_down::incline_down_layer,
    69 node|z19[setting("incline_z19")].incline_down::incline_down_layer,
    70 node|z20-.incline_down::incline_down_layer,
    7181node|z20-.incline_down::incline_down_layer {
    7282    text: eval("↧"); /* U+21A7 (8615) DOWNWARDS ARROW FROM BAR from https://de.wikipedia.org/wiki/Unicodeblock_Pfeile */
     
    7888
    7989node|z19[setting("incline_z19")].incline_up::incline_up_layer,
    80 node|z19[setting("incline_z19")].incline_up::incline_up_layer,
    81 node|z20-.incline_up::incline_up_layer,
    8290node|z20-.incline_up::incline_up_layer {
    8391    text: eval("↥"); /* U+21A5 (8613) UPWARDS ARROW FROM BAR from https://de.wikipedia.org/wiki/Unicodeblock_Pfeile */
     
    8795    text-anchor-vertical: above;
    8896}
     97
     98node|z19[setting("incline_z19")].incline_zero::incline_zero_layer,
     99node|z20-.incline_zero::incline_zero_layer {
     100    text: eval("← →"); /* U+2190 (8592) LEFTWARDS ARROW and U+2192 (8594) RIGHTWARDS ARROW from https://de.wikipedia.org/wiki/Unicodeblock_Pfeile */
     101    text-color: incline_zero#ffff00;
     102    font-size: 20;
     103    text-anchor-horizontal: center;
     104    text-anchor-vertical: center;
     105   
     106}
    89107}}}