Changes between Version 13 and Version 14 of Styles/SidewalksAndFootways


Ignore:
Timestamp:
2023-02-16T19:25:37+01:00 (3 years ago)
Author:
JeroenHoek
Comment:

Implied foot=no for motorway, trunk, busway; support for tactile_paving

Legend:

Unmodified
Added
Removed
Modified
  • Styles/SidewalksAndFootways

    v13 v14  
    1 Useful for highlighting pedestrian affairs when mapping. Visualizes the `sidewalk`, `sidewalk:left`, and `sidewalk:right` tags of highways, and renders various `highway=footway` types specified via `footway=*` in different patterns. Ways that do not permit pedestrian use are (optionally) made translucent, making it easy to see that a tag like `foot=no` or `foot=use_sidepath` is applied.
     1Useful for highlighting pedestrian affairs when mapping. Visualizes the `sidewalk`, `sidewalk:left`, and `sidewalk:right` tags of highways, and renders various `highway=footway` types specified via `footway=*` in different patterns.
     2
     3Ways that do not permit pedestrian use are (optionally) made translucent, making it easy to see that a tag like `foot=no` or `foot=use_sidepath` is applied.
    24
    35[[Image(sample.png)]]
     6
     7When `tactile_paving` is set to a value which indicates the presence of tactile paving, a white casing is drawn around the way.
    48
    59== Settings
     
    3539    This style is a fork of https://josm.openstreetmap.de/wiki/Styles/Sidewalks
    3640   
    37     Because this style introduces more features than the above I have forked it for now. If the author of the original is willing the two may be combined in the future.
     41    Because this style introduces more features than the above I have forked it. If the author of the original is willing the two may be combined in the future.
    3842*/
    3943
     
    5862
    5963setting::highlight_routes {
    60   type: boolean;
    61   label: tr("Highlight ways part of trails and other hiking routes");
    62   default: true;
     64    type: boolean;
     65    label: tr("Highlight ways part of trails and other hiking routes");
     66    default: true;
    6367}
    6468
    6569setting::highlight_rwn_nodes {
    66   type: boolean;
    67   label: tr("Show the node names of recreational walking node networks");
    68   default: true;
     70    type: boolean;
     71    label: tr("Show the node names of recreational walking node networks");
     72    default: true;
     73}
     74
     75setting::highlight_tactile_paving {
     76    type: boolean;
     77    label: tr("Highlight ways with tactile paving");
     78    default: true;
    6979}
    7080
    7181setting::no_foot_translucent {
    72   type: boolean;
    73   label: tr("Make ways without pedestrian access translucent");
    74   default: true;
     82    type: boolean;
     83    label: tr("Make ways without pedestrian access translucent");
     84    default: true;
     85}
     86
     87setting::trunk_implies_foot_no {
     88    type: boolean;
     89    label: tr("Treat trunk roads without motorroad=yes as inaccesible for pedestrians (used in combination with the translucency option)");
     90    default: true;
    7591}
    7692
    7793setting::show_kerb {
    78   type: boolean;
    79   label: tr("Show kerb transition values on nodes");
    80   default: true;
     94    type: boolean;
     95    label: tr("Show kerb transition values on nodes");
     96    default: true;
    8197}
    8298
     
    208224    symbol-size: 10;
    209225    symbol-stroke-width: 1;
    210     symbol-stroke-color: #D3D3D3;
     226    symbol-stroke-color: #d3d3d3;
    211227}
    212228node|z-19[kerb][setting("show_kerb")] {
     
    217233node|z-21[kerb=raised][setting("show_kerb")] {
    218234    symbol-fill-color: #933434;
    219     symbol-stroke-color: #E8BFBF;
     235    symbol-stroke-color: #e8bfbf;
    220236}
    221237node|z-21[kerb=lowered][setting("show_kerb")] {
    222     symbol-fill-color: #34938A;
    223     symbol-stroke-color: #BFE8E5;
     238    symbol-fill-color: #34938a;
     239    symbol-stroke-color: #bfe8e5;
    224240}
    225241node|z-21[kerb=rolled][setting("show_kerb")] {
    226     symbol-fill-color: #935C34;
    227     symbol-stroke-color: #E8D0BF;
     242    symbol-fill-color: #935c34;
     243    symbol-stroke-color: #e8d0bf;
    228244}
    229245node|z-21[kerb=flush][setting("show_kerb")] {
    230246    symbol-fill-color: #349340;
    231     symbol-stroke-color: #BFE8C4;
     247    symbol-stroke-color: #bfe8c4;
    232248}
    233249node|z-21[kerb=yes][setting("show_kerb")] {
    234250    symbol-fill-color: #848484;
    235     symbol-stroke-color: #F0F0F0;
     251    symbol-stroke-color: #f0f0f0;
    236252}
    237253node|z-21[kerb=no][setting("show_kerb")] {
    238254    symbol-fill-color: #363636;
    239     symbol-stroke-color: #ADADAD;
     255    symbol-stroke-color: #adadad;
    240256}
    241257
     
    338354    width: 2;
    339355    dashes: 5, 10;
     356}
     357
     358/*
     359    tactile paving.
     360*/
     361
     362way[tactile_paving=yes]::tactile_paving_bg,
     363way[tactile_paving=contrasted]::tactile_paving_bg,
     364way[tactile_paving=primitive]::tactile_paving_bg,
     365way[tactile_paving=partial]::tactile_paving_bg {
     366    set has-tactile-paving;
     367}
     368
     369way[setting("highlight_tactile_paving")].has-tactile-paving::tactile_paving_bg {
     370    width: 7;
     371    color: white;
     372    opacity: 0.8;
     373    object-z-index: -0.8;
     374}
     375
     376way[highway=pedestrian][setting("highlight_tactile_paving")].has-tactile-paving::tactile_paving_bg {
     377    width: 9;
    340378}
    341379
     
    380418
    381419/*
    382     Make ways with no pedestrian access translucent. This makes it easier to focus on the ways that do permit pedestrians,
     420    Make ways with no pedestrian access translucent. this makes it easier to focus on the ways that do permit pedestrians,
    383421    and shows whether or not pedestrian access is allowed at a glance.
     422
     423    `highway=motorway`, `highway=motorway_link`, and `highway=busway` imply `foot=no`. for `highway=trunk` and `highway=trunk_link`
     424    this may be locale dependent. For this reason this style inlcudes a setting which can configure behaviour for the latter.
    384425*/
    385426
     
    391432}
    392433
     434way[motorroad=yes][setting("no_foot_translucent")]!.foot-has-access::core_motorroad {
     435    /* Motorroad casing is in a separate layer. */
     436    opacity: 0.3;
     437}
     438
     439
    393440way[access=no][setting("no_foot_translucent")]!.foot-has-access,
    394441way[access=private][setting("no_foot_translucent")]!.foot-has-access,
     442way[highway=motorway][setting("no_foot_translucent")]!.foot-has-access,
     443way[highway=motorway_link][setting("no_foot_translucent")]!.foot-has-access,
     444way[highway=trunk][setting("no_foot_translucent")][setting("trunk_implies_foot_no")]!.foot-has-access,
     445way[highway=trunk_link][setting("no_foot_translucent")][setting("trunk_implies_foot_no")]!.foot-has-access,
     446way[highway=busway][setting("no_foot_translucent")]!.foot-has-access,
     447way[motorroad=yes][setting("no_foot_translucent")]!.foot-has-access,
    395448way[foot=use_sidepath][setting("no_foot_translucent")],
    396449way[foot=private][setting("no_foot_translucent")],
     
    402455way[access=no][setting("no_foot_translucent")]!.foot-has-access::core_access,
    403456way[access=private][setting("no_foot_translucent")]!.foot-has-access::core_access,
     457way[highway=motorway][setting("no_foot_translucent")]!.foot-has-access::care_access,
     458way[highway=motorway_link][setting("no_foot_translucent")]!.foot-has-access::care_access,
     459way[highway=trunk][setting("no_foot_translucent")][setting("trunk_implies_foot_no")]!.foot-has-access::core_access,
     460way[highway=trunk_link][setting("no_foot_translucent")][setting("trunk_implies_foot_no")]!.foot-has-access::core_access,
     461way[highway=busway][setting("no_foot_translucent")]!.foot-has-access::core_access,
    404462way[foot=use_sidepath][setting("no_foot_translucent")]::core_access,
    405463way[foot=private][setting("no_foot_translucent")]::core_access,