Changeset 18270 in josm for trunk/resources


Ignore:
Timestamp:
2021-10-10T21:51:02+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #20270 - Add man_made=utility_pole (patch by taylor.smock and francois.lacombe, reviewed by skyper)

Location:
trunk/resources
Files:
2 added
3 edited

Legend:

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

    r18269 r18270  
    433433    <chunk id="power_source_values">
    434434    </chunk>
    435     <chunk id="power_pole">
     435    <chunk id="utilities">
     436        <combo key="utility" text="Utility" values="chemical,gas,heating,hydrant,oil,power,sewerage,street_lighting,telecom,television,waste,water" values_searchable="true"/>
     437    </chunk>
     438    <chunk id="pole">
    436439        <text key="height" text="Height (meters)" length="7" />
    437440        <combo key="material" text="Material" values="concrete,metal,plastic,steel,stone,wood" />
     441        <reference ref="ref_operator" />
     442    </chunk>
     443    <chunk id="power_pole">
    438444        <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    439445        <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
    440446        <check key="location:transition" text="Location transition" disable_off="true" />
    441         <reference ref="ref_operator" />
     447        <reference ref="pole" />
    442448    </chunk>
    443449    <chunk id="rating_phases">
     
    58135819        </item> <!-- Embankment -->
    58145820        <separator/>
     5821        <item name="Utility Pole" icon="presets/tower/pole.svg" type="node" preset_name_label="true">
     5822            <link wiki="Tag:man_made=utility_pole" />
     5823            <space />
     5824            <key key="man_made" value="utility_pole" />
     5825            <reference ref="pole" />
     5826            <reference ref="utilities" />
     5827            <preset_link preset_name="Pole" text="Similar preset:" />
     5828        </item> <!-- Utility Pole -->
    58155829        <item name="Street Lamp" icon="presets/misc/streetlamp.svg" type="node" preset_name_label="true">
    58165830            <link wiki="Tag:highway=street_lamp" />
     
    60746088            <space />
    60756089            <combo key="marker" text="Type" values="aerial,ground,pedestal,plate,post,stone" values_context="marker" match="key" />
    6076             <combo key="utility" text="Utility" values="chemical,gas,heating,hydrant,oil,power,sewerage,street_lighting,telecom,television,waste,water" values_searchable="true" />
     6090            <reference ref="utilities" />
    60776091            <optional>
    60786092                <reference ref="ref_operator" />
     
    67046718            <key key="power" value="pole" />
    67056719            <reference ref="power_pole" />
     6720            <preset_link preset_name="Utility Pole" text="Similar preset:" />
    67066721        </item> <!-- Pole -->
    67076722        <item name="Pole with Switch" icon="presets/power/pole_switch.svg" type="node" preset_name_label="true">
  • trunk/resources/data/validator/ignoretags.cfg

    r18269 r18270  
    239239K:water=pool
    240240K:golf=path
    241 K:man_made=utility_pole
    242241K:site=geodesic
    243242K:site=stop_area
  • trunk/resources/styles/standard/elemstyles.mapcss

    r18269 r18270  
    17861786node[man_made=communications_tower] {
    17871787    icon-image: "presets/tower/communications_tower.svg";
     1788    set icon_z17;
     1789}
     1790node|z17-[man_made=utility_pole][utility][utility!=power][utility!=street_lighting]::utility_casing {
     1791    utility_casing: #fdfdf8;
     1792}
     1793node|z17-[man_made=utility_pole][utility=gas]::utility_casing {
     1794    utility_casing: #ffff00;
     1795}
     1796node|z17-[man_made=utility_pole][utility=oil]::utility_casing {
     1797    utility_casing: #708090;
     1798}
     1799node|z17-[man_made=utility_pole][utility=telecom]::utility_casing,
     1800node|z17-[man_made=utility_pole][utility=television]::utility_casing {
     1801    utility_casing: #21bd00;
     1802}
     1803node|z17-[man_made=utility_pole][utility=water]::utility_casing {
     1804    utility_casing: #2090cf;
     1805}
     1806node|z17-[man_made=utility_pole][utility=sewerage]::utility_casing {
     1807    utility_casing: #1d5575;
     1808}
     1809node|z17-[man_made=utility_pole][utility=waste]::utility_casing {
     1810    utility_casing: #ee82ee;
     1811}
     1812node[man_made=utility_pole].utility_casing::utility_casing {
     1813    symbol-fill-color: prop("utility_casing");
     1814    symbol-shape: circle;
     1815    symbol-size: 12;
     1816}
     1817node[man_made=utility_pole] {
     1818    icon-image: "presets/tower/pole.svg";
     1819    set icon_z17;
     1820}
     1821node[man_made=utility_pole][utility~=power] {
     1822    icon-image: "presets/power/pole.svg";
     1823    set icon_z17;
     1824}
     1825node[man_made=utility_pole][utility~=street_lighting] {
     1826    icon-image: "presets/tower/pole_street_light.svg";
    17881827    set icon_z17;
    17891828}
Note: See TracChangeset for help on using the changeset viewer.