Changes between Version 63 and Version 64 of Styles/Lane_and_Road_Attributes


Ignore:
Timestamp:
2020-03-25T04:56:00+01:00 (6 years ago)
Author:
skyper
Comment:

add links, format description

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Lane_and_Road_Attributes

    v63 v64  
    11[[TranslatedPages]]
    22[[PageOutline(2-10)]]
    3 = [[Image(icon.svg,36,middle,inline)]] Lanes and Road Attributes mappaint style
     3= [[Image(icon.svg,48,link=,middle,inline,margin-right=20)]] Lanes and Road Attributes mappaint style
    44
    55This style visualizes a number of lane and road specific attributes. Namely common variants of the following tags are considered:
    66* [[osmwiki:Key:lanes|lanes]]: Number of lanes for motorized traffic.
    7 * [[osmwiki:Key:width|width]]: The width of the carriageway. Lane-dependent width using width:lanes is fully supported.
     7* [[osmwiki:Key:width|width]]: The width of the carriageway. Lane-dependent width using `width:lanes` is fully supported.
    88* [[osmwiki:Key:change|change]]: Allowed resp. forbidden lane changes.
    99* [[osmwiki:Key:turn|turn]]: Indication of turning lanes, including preliminary support for values hook_right and hook_left (this might change!)
    10 * [[osmwiki:Key:cycleway|cycleway]]: Only cycle tracks are supported if specified with cycleway. Cycle lanes need bicycle:lanes=...|designated|... to be visible.
     10* [[osmwiki:Key:cycleway|cycleway]]: Only cycle tracks are supported if specified with cycleway. Cycle lanes need `bicycle:lanes=...|designated|...` to be visible.
    1111* [[osmwiki:Key:bicycle|bicycle:lanes]]: Dedicated bicycle lanes.
    1212* [[osmwiki:Key:bus|bus:lanes]]: Dedicated bus lanes.
     
    1919* [[osmwiki:Proposed_features/highway=junction|highway=junction]]: Can be used to indicate the outline of a junction and group together all features of it.
    2020* [[osmwiki:Relation:enforcement|Relation enforcement]]: The to and from members of such relations are highlighted
    21 * [[osmwiki:Key:traffic_sign|traffic_sign]]: Traffic signs for speed limits and overtaking are displayed if tagged with traffic_sign=maxspeed/overtaking and maxspeed=<limit> resp. overtaking=yes/no. The value implicit for maxspeed is interpreted as the end of the speed limit. Combinations like traffic_sign=maxspeed;overtaking are also supported.
     21* [[osmwiki:Key:traffic_sign|traffic_sign]]: Traffic signs for speed limits and overtaking are displayed if tagged with `traffic_sign=maxspeed/overtaking` and `maxspeed=<limit>` resp. `overtaking=yes/no.` The value implicit for `maxspeed` is interpreted as the end of the speed limit. Combinations like `traffic_sign=maxspeed;overtaking` are also supported.
    2222* [[osmwiki:Key:hov|hov:lanes]]: Dedicated HOV lanes. The minimum requirement can be specified by hov:minimum (supported values: 2 and 3)
    2323* [[osmwiki:Relation:destination_sign|Relation destination_sign]]: Experimental and very limited support!
     
    2727
    2828Furthermore:
    29 * Common suffixes like :forward, :backward, :left, :right: and :both as well as the proposed :both_ways (for lanes in both directions) are supported where appropriate.
     29* Common suffixes like `:forward`, `:backward`, `:left`, `:right` and `:both` as well as the proposed `:both_ways` (for lanes in both directions) are supported where appropriate.
    3030* Some common tagging errors are detected and displayed, e.g. inconsistent number of lane-dependent values and typos in the keys turn and change.
    31 * The style also supports '''left-hand traffic'''; see section Settings.
    32 
    33 Use the [[Help/Dialog/MapPaint|Map Style Dialog]] to download and activate the style. A good starting point to see it in action is the [osmwww:#map=14/47.0705/15.4353 area around Graz in Austria].
     31* The style also supports '''left-hand traffic'''; see section Settings, below.
     32
     33Use the [[JOSMImage(dialogs/mapstyle)]] [wikitr:/Help/Dialog/MapPaint Map Style panel] to download and activate the style. A good starting point to see it in action is the [osmwww:#map=14/47.0705/15.4353 area around Graz in Austria].
    3434
    3535To '''report bugs or provide feedback''' send [[osmwiki:User:Imagic|me a message]].
    3636
    3737== Settings
    38 Some settings of the style can be configured using Edit -> Preferences -> Display settings -> Colours. All settings start with mappaint.lane.and.road.attributes. Settings that contain the text "boolean" treat white as yes and any other color as no. Settings that contain the text "opacity" use the lightness to specify the opacity (the values for transparency or alpha are completely ignored!)
    39 * The settings '''carriage.way.backward''', '''carriage.way.forward''' and '''carriage.way.both_ways''' specify the colour of the respective lanes.
    40 * The settings '''sidewalk''', '''cycletrack''' and '''combined.sidewalk.and.cycletrack''' specify the colour of the sidewalk, a cycletrack and a combined sidewalk and cycletrack
    41 * If '''boolean.right.hand.traffic''' is set to white, lanes are rendered for right hand traffic, if set to black for left hand traffic and if set to anything else (which is now the default) the right- and left-hand traffic database from JOSM is used to automatically determine the side.
    42 * If '''boolean.use.svg.for.turning.markings''' is set to white, the markings for turning lanes are rendered more precisely. '''If you run into memory problems, set this to black.''' If this is set to black, the setting '''integer.png.turn.variant''' can be used to specify which set of png images should be used for turn markings. Currently two sets are supplied (value 000000 and 000001).
    43 * The settings '''opacity.lane''', '''opacity.markings''' and '''opacity.sidewalk''' specify the opacity of the lane background, road markings and the sidewalk background. If set to white they are opaque; if set to black they are completely transparent, any grey setting in between is treated an appropriate opacity.
     38Some settings of the style can be configured in [[JOSMImage(preference)]] [wikitr:/Help/Action/Preferences Preferences] in [[JOSMImage(preferences/display,24,link=,middle)]] [wikitr:/Help/Preferences/Display Display settings] under [wikitr:/Help/Preferences/Display#Colors Colors]. All settings start with **`mappaint.lane.and.road.attributes`**. Settings that contain the text "boolean" treat `white` as `yes` and any other color as `no`. Settings that contain the text "opacity" use the lightness to specify the opacity (the values for transparency or alpha are completely ignored!)
     39* The settings **`carriage.way.backward`**, **`carriage.way.forward`** and **`carriage.way.both_ways`** specify the color of the respective lanes.
     40* The settings **`sidewalk`**, **`cycletrack`** and **`combined.sidewalk.and.cycletrack`** specify the color of the sidewalk, a cycletrack and a combined sidewalk and cycletrack
     41* If **`boolean.right.hand.traffic`** is set to `white`, lanes are rendered for right hand traffic, if set to `black` for left hand traffic and if set to anything else (which is now the default) the right- and left-hand traffic [wikitr:/left-right-hand-traffic database] from JOSM is used to automatically determine the side.
     42* If **`boolean.use.svg.for.turning.markings`** is set to `white`, the markings for turning lanes are rendered more precisely. '''If you run into memory problems, set this to `black`.''' If this is set to `black`, the setting **`integer.png.turn.variant`** can be used to specify which set of png images should be used for turn markings. Currently two sets are supplied (value 000000 and 000001).
     43* The settings **`opacity.lane`**, **`opacity.markings`** and **`opacity.sidewalk`** specify the opacity of the lane background, road markings and the sidewalk background. If set to `white` they are opaque; if set to `black` they are completely transparent, any grey setting in between is treated an appropriate opacity.
    4444
    4545== Known limitations/bugs
    46 * [[ticket:8429|A bug in JOSM]] leads sometimes to rendering artefacts.
     46* [[ticket:8429|A bug in JOSM]] leads sometimes to rendering artifacts.
    4747* Left-hand traffic is nearly untested. Please provide feedback.
    48 * Roads with oneway=-1 may lead to incorrect results. Please provide feedback.
    49 * change:lanes without suffix is currently only supported on one-ways and for the special case of change:lanes=no|no.
     48* Roads with `oneway=-1` may lead to incorrect results. Please provide feedback.
     49* `change:lanes` without suffix is currently only supported on one-ways and for the special case of `change:lanes=no|no`.
    5050* In forward and backward direction a maximum of eight lanes and for lanes in both directions a maximum of four lanes is displayed.
    51 * turn:lanes (without forward or backward) is only used when combined with oneway=yes.
     51* `turn:lanes` (without `forward` or `backward`) is only used when combined with `oneway=yes`.
    5252
    5353== Acknowledgments
     
    5757
    5858== Preset
    59 An appropriate preset for lane attributes is available at [wiki:Presets/LaneAttributes Lane Attributes].
     59An appropriate preset for lane attributes is available at [wikitr:/Presets/LaneAttributes Lane Attributes].
    6060
    6161== Screenshot
    62 [[Image(Screenshot_Style_Lane_and_Road_Attributes.jpeg)]]
     62[[Image(Screenshot_Style_Lane_and_Road_Attributes.jpeg,link=)]]
    6363
    6464== Code