Changes between Version 3 and Version 10 of Styles/Incline
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Incline
v3 v10 1 1 [[TranslatedPages]] 2 2 3 = [[Image(incline_icon.svg, 36,middle,inline)]] Incline =3 = [[Image(incline_icon.svg,inline,48,middle,margin-right=20)]] Incline = 4 4 [[PageOutline(2-9)]] 5 5 … … 10 10 You can adjust the colours of the arrows in the preference window of JOSM. 11 11 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.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 [wikitr:/Help/Dialog/MapPaint/StyleSettings style setting] of this style. 13 13 14 14 For ideas/questions/bugs/suggestions or similar please write a message to [osmwww:user/Klumbumbus Klumbumbus]. … … 16 16 Feel free to translate this wiki page into more languages. Already translated languages see top right. 17 17 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 examplein the image below).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 first and fourth example from the left in the image below). 19 19 20 20 [[Image(example.png)]] … … 24 24 == Changelog == 25 25 ^(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 ==== 27 34 * inital version 28 35 … … 33 40 meta { 34 41 title: "Incline"; 35 version: " 1.0.[[revision]]_[[date]]";42 version: "2.1.[[revision]]_[[date]]"; 36 43 description: "Display of up/down arrows at the first and last node of ways with incline=*."; 37 44 icon: "incline_icon.svg"; 38 45 author: "Klumbumbus"; 39 link: "http ://josm.openstreetmap.de/wiki/Styles/Incline";46 link: "https://josm.openstreetmap.de/wiki/Styles/Incline"; 40 47 min-josm-version: "8236"; /* because of negative index counting */ 41 48 } … … 44 51 title: "Steigung (incline)"; 45 52 description: "Anzeige von hoch/runter-Pfeilen am ersten und letzten Punkt von Linien mit incline=*."; 46 link: "http ://josm.openstreetmap.de/wiki/De:Styles/Incline";53 link: "https://josm.openstreetmap.de/wiki/De:Styles/Incline"; 47 54 } 48 55 … … 55 62 56 63 /* 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 {64 way[highway][incline][incline =~ /^(up|([0-9]+(\.?[0-9]+)?)[%°])$/][incline !~ /^((0(\.0+)?)[%°])$/] >[index=-1] node::incline_down_layer, 65 way[highway][incline][incline =~ /^(down|-([0-9]+(\.?[0-9]+)?)[%°])$/][incline !~ /^((0(\.0+)?)[%°])$/] >[index=1] node::incline_down_layer { 59 66 set incline_down; 60 67 } 61 68 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 {69 way[highway][incline][incline =~ /^(up|([0-9]+(\.?[0-9]+)?)[%°])$/][incline !~ /^((0(\.0+)?)[%°])$/] >[index=1] node::incline_up_layer, 70 way[highway][incline][incline =~ /^(down|-([0-9]+(\.?[0-9]+)?)[%°])$/][incline !~ /^((0(\.0+)?)[%°])$/] >[index=-1] node::incline_up_layer { 64 71 set incline_up; 72 } 73 74 way[highway][incline][incline =~ /^((0(\.0+)?)[%°])$/] >[index=-1] node::incline_zero_layer, 75 way[highway][incline][incline =~ /^((0(\.0+)?)[%°])$/] >[index=1] node::incline_zero_layer { 76 set incline_zero; 65 77 } 66 78 67 79 /* display the arrow signs */ 68 80 node|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,71 81 node|z20-.incline_down::incline_down_layer { 72 82 text: eval("↧"); /* U+21A7 (8615) DOWNWARDS ARROW FROM BAR from https://de.wikipedia.org/wiki/Unicodeblock_Pfeile */ … … 78 88 79 89 node|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,82 90 node|z20-.incline_up::incline_up_layer { 83 91 text: eval("↥"); /* U+21A5 (8613) UPWARDS ARROW FROM BAR from https://de.wikipedia.org/wiki/Unicodeblock_Pfeile */ … … 87 95 text-anchor-vertical: above; 88 96 } 97 98 node|z19[setting("incline_z19")].incline_zero::incline_zero_layer, 99 node|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 } 89 107 }}}