Changeset 18296 in josm


Ignore:
Timestamp:
2021-10-30T17:46:11+02:00 (3 years ago)
Author:
Klumbumbus
Message:

fix #19573, see #21440 - Add some more barrier values (patch by skyper):

  • barrier=log (icon derived from https://openclipart.org/detail/252925/log, PD and CC0 licensed)
  • barrier=full-height_turnstile (icon created by skyper, GPL3 licensed)
  • barrier=height_restrictor (icon created by Szem and skyper, GPL3 licensed)
Location:
trunk/resources
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r18286 r18296  
    17511751            <combo key="material" text="Material" values="concrete,plastic" />
    17521752        </item> <!-- Jersey Barrier -->
     1753        <item name="Log" icon="presets/barrier/log.svg"  type="node,way" preset_name_label="true">
     1754            <link wiki="Tag:barrier=log" />
     1755            <key key="barrier" value="log" />
     1756            <space />
     1757            <reference ref="highway_access_vehicle" />
     1758            <reference ref="check_access_nomotor" />
     1759            <reference ref="check_access_motor" />
     1760            <preset_link preset_name="Access Restrictions" />
     1761        </item> <!-- Log -->
    17531762        <item name="Ditch" name_context="Barrier" type="way,closedway" preset_name_label="true">
    17541763            <link wiki="Tag:barrier=ditch" />
     
    18501859            <preset_link preset_name="Access Restrictions" />
    18511860        </item> <!-- Kissing Gate -->
     1861        <item name="Height Restrictor" icon="presets/barrier/height_restrictor.svg" type="node" preset_name_label="true">
     1862            <link wiki="Tag:barrier=height_restrictor" />
     1863            <key key="barrier" value="height_restrictor" />
     1864            <reference ref="optional_maxheight_maxwidth" />
     1865            <combo key="material" text="Material" values="concrete,metal,plastic,stone,wood" />
     1866            <space />
     1867            <reference ref="highway_access_vehicle" />
     1868            <reference ref="check_access_nomotor" />
     1869            <reference ref="check_access_motor" />
     1870            <preset_link preset_name="Access Restrictions" />
     1871        </item> <!-- Height Restrictor -->
    18521872        <item name="Chain" icon="presets/barrier/chain.svg" type="node,way,closedway" preset_name_label="true">
    18531873            <link wiki="Tag:barrier=chain" />
     
    18771897            <key key="barrier" value="turnstile" />
    18781898            <reference ref="optional_maxwidth" />
     1899            <text key="maxlength" text="Max. length (meters)" match="key" />
    18791900            <combo key="material" text="Material" values="concrete,metal,plastic,stone,wood" />
    18801901            <space />
     
    18831904            <preset_link preset_name="Access Restrictions" />
    18841905        </item> <!-- Turnstile -->
     1906        <item name="Full-Height Turnstile" icon="presets/barrier/full-height_turnstile.svg" type="node" preset_name_label="true">
     1907            <link wiki="Tag:barrier=full-height_turnstile" />
     1908            <key key="barrier" value="full-height_turnstile" />
     1909            <reference ref="optional_maxheight_maxwidth" />
     1910            <text key="maxlength" text="Max. length (meters)" match="key" />
     1911            <combo key="material" text="Material" values="concrete,metal,plastic,stone,wood" />
     1912            <space />
     1913            <reference ref="highway_access_vehicle" />
     1914            <reference ref="check_access_nomotor" />
     1915            <preset_link preset_name="Access Restrictions" />
     1916        </item> <!-- Full-Height Turnstile -->
    18851917        <item name="Sally Port" icon="presets/barrier/sally_port.svg" type="node" preset_name_label="true">
    18861918            <link wiki="Tag:barrier=sally_port" />
     
    19061938                <text key="width" text="Width (meters)" />
    19071939                <text key="maxheight" text="Max. height (meters)" />
     1940                <text key="maxwidth" text="Max. width (meters)" match="key" />
    19081941                <space />
    19091942                <text key="maxspeed" text="Max. speed (km/h)" />
  • trunk/resources/styles/standard/elemstyles.mapcss

    r18270 r18296  
    407407way[barrier=ditch],
    408408way[barrier=jersey_barrier],
     409way[barrier=log],
    409410way[barrier=kerb] {
    410411    width: 2;
     
    461462    set icon_z17;
    462463}
     464node[barrier=full-height_turnstile] {
     465    icon-image: "presets/barrier/full-height_turnstile.svg";
     466    set icon_z17;
     467}
    463468node[barrier=cycle_barrier] {
    464469    icon-image: "presets/barrier/cycle_barrier.svg";
     
    473478    set icon_z17;
    474479}
     480node[barrier=kissing_gate] {
     481    icon-image: "presets/barrier/kissing_gate.svg";
     482    set icon_z17;
     483}
     484node[barrier=height_restrictor] {
     485    icon-image: "presets/barrier/height_restrictor.svg";
     486    set icon_z17;
     487}
    475488area[barrier=toll_booth]:closed {
    476489    fill-color: barrier#F0F050;
     
    504517    set icon_z17;
    505518}
    506 node[barrier=kissing_gate] {
    507     icon-image: "presets/barrier/kissing_gate.svg";
     519node[barrier=log] {
     520    icon-image: "presets/barrier/log.svg";
    508521    set icon_z17;
    509522}
Note: See TracChangeset for help on using the changeset viewer.