Ticket #20620: 0001-Allow-use-of-aeroway-holding_position-on-way.patch

File 0001-Allow-use-of-aeroway-holding_position-on-way.patch, 2.6 KB (added by JeroenHoek, 4 years ago)

Patch.

  • resources/data/defaultpresets.xml

    From c6a3c7fe4886cab673de1f81474836cebaa2c60d Mon Sep 17 00:00:00 2001
    From: Jeroen Hoek <mail@jeroenhoek.nl>
    Date: Fri, 19 Mar 2021 12:36:57 +0100
    Subject: [PATCH] Allow use of aeroway=holding_position on way
    
    `aeroway=holding_position` can be used on ways as well as nodes. Using
    it on ways is a later addition that JOSM did not support yet.
    
    In this commit:
    
    * Ways tagged with `aeroway=holding_position` are rendered in a subtle
      yellow line colour.
    * The validator no longer warns for use on ways.
    * The preset is applicable on ways as well now.
    ---
     resources/data/defaultpresets.xml           | 2 +-
     resources/data/validator/geometry.mapcss    | 1 -
     resources/styles/standard/elemstyles.mapcss | 4 ++++
     3 files changed, 5 insertions(+), 2 deletions(-)
    
    diff --git a/resources/data/defaultpresets.xml b/resources/data/defaultpresets.xml
    index 51be7b0ce..b65a49619 100644
    a b  
    30873087                <reference ref="surface" />
    30883088            </optional>
    30893089        </item> <!-- Taxiway -->
    3090         <item name="Holding Position" icon="presets/transport/airport/holding_position.svg" type="node" preset_name_label="true">
     3090        <item name="Holding Position" icon="presets/transport/airport/holding_position.svg" type="node,way" preset_name_label="true">
    30913091            <link wiki="Tag:aeroway=holding_position" />
    30923092            <key key="aeroway" value="holding_position" />
    30933093            <combo key="holding_position:type" text="Type" values="ILS,intermediate,runway" values_context="aeroway holding_position" />
  • resources/data/validator/geometry.mapcss

    diff --git a/resources/data/validator/geometry.mapcss b/resources/data/validator/geometry.mapcss
    index ad114882f..7dd2daf94 100644
    a b way[entrance],  
    103103way[door],
    104104way[railway=subway_entrance],
    105105way[man_made=survey_point],
    106 way[aeroway=holding_position],
    107106way[power=transformer],
    108107way[transformer],
    109108way[power=pole],
  • resources/styles/standard/elemstyles.mapcss

    diff --git a/resources/styles/standard/elemstyles.mapcss b/resources/styles/standard/elemstyles.mapcss
    index abbf58778..f5029b2e4 100644
    a b node[aeroway=holding_position] {  
    42254225    icon-image: "presets/transport/airport/holding_position.svg";
    42264226    set icon_z17;
    42274227}
     4228way[aeroway=holding_position] {
     4229    width: 1;
     4230    color: aeroway_marking#D6CE08;
     4231}
    42284232node[aeroway=hangar] {
    42294233    icon-image: "presets/transport/airport/hangar.svg";
    42304234    set icon_z17;