Changeset 17525 in josm


Ignore:
Timestamp:
2021-02-22T16:25:44+01:00 (9 days ago)
Author:
Don-vip
Message:

see #20447 - add hazard tags

Location:
trunk/resources
Files:
1 added
2 edited

Legend:

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

    r17513 r17525  
    10501050            </optional>
    10511051        </item> <!-- Ford -->
     1052        <item name="Traffic Hazard" icon="presets/transport/hazard.svg" type="node,way" preset_name_label="true">
     1053            <link wiki="Key:hazard" />
     1054            <space />
     1055            <combo key="hazard" text="Hazard" values="animal_crossing,bump,children,curve,curves,cyclists,dangerous_junction,dip,falling_rocks,frost_heave,horse_riders,ice,landslide,loose_gravel,low_flying_aircraft,pedestrians,queues_likely,school_zone,side_winds,slippery,turn,turns" values_context="hazard" />
     1056        </item> <!-- Traffic Hazard -->
    10521057    </group> <!-- Streets -->
    10531058    <group name="Ways" icon="presets/transport/way/way_unclassified.svg">
     
    78097814            </optional>
    78107815        </item> <!-- Protected Area -->
     7816        <item name="Hazardous Area" icon="presets/misc/boundaries.svg" type="closedway,relation" preset_name_label="true">
     7817            <link wiki="Tag:boundary=hazard" />
     7818            <space />
     7819            <key key="boundary" value="hazard" />
     7820            <combo key="hazard" text="Hazard" values="contamination,minefield,nuclear,shooting_range,unexploded_ordnance" values_context="hazard" />
     7821            <optional>
     7822                <text key="related_law" text="Related law" />
     7823            </optional>
     7824        </item> <!-- Hazardous Area -->
    78117825        <item name="Maritime" icon="presets/misc/boundaries.svg" type="way,closedway,relation" preset_name_label="true">
    78127826            <link wiki="Tag:boundary=maritime" />
  • trunk/resources/styles/standard/elemstyles.mapcss

    r17468 r17525  
    836836    dashes: 9,9;
    837837    dashes-offset: 9;
     838}
     839node[hazard] {
     840    icon-image: "presets/transport/hazard.svg";
     841    set icon_z17;
    838842}
    839843area[highway=platform]:closed {
     
    50855089relation[boundary=political] > way::core_boundary,
    50865090relation[boundary=maritime] > way::core_boundary,
     5091relation[boundary=hazard] > way::core_boundary,
    50875092relation[boundary=national_park] > way::core_boundary,
    50885093way[boundary=protected_area]::core_boundary,
     
    50915096way[boundary=political]::core_boundary,
    50925097way[boundary=maritime]::core_boundary,
     5098way[boundary=hazard]::core_boundary,
    50935099way[boundary=national_park]::core_boundary {
    50945100    z-index: 2;
Note: See TracChangeset for help on using the changeset viewer.