Ticket #20270: 20270.size_12.patch

File 20270.size_12.patch, 7.4 KB (added by taylor.smock, 4 years ago)

Same as attachment:josm_20270_8.patch, but halos are size 12 (static)

  • resources/data/defaultpresets.xml

    diff --git a/resources/data/defaultpresets.xml b/resources/data/defaultpresets.xml
    index 13519ba957..f89aff8ba8 100644
    a b  
    409409            <reference ref="voltage_frequency" />
    410410        </optional>
    411411    </chunk>
    412     <chunk id="power_pole">
     412    <chunk id="utilities">
     413        <combo key="utility" text="Utility" values="chemical,gas,heating,hydrant,oil,power,sewerage,street_lighting,telecom,television,waste,water" values_searchable="true"/>
     414    </chunk>
     415    <chunk id="pole">
    413416        <text key="height" text="Height (meters)" length="7" />
    414417        <combo key="material" text="Material" values="concrete,metal,plastic,steel,stone,wood" />
     418        <reference ref="ref_operator" />
     419    </chunk>
     420    <chunk id="power_pole">
    415421        <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    416422        <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
    417423        <check key="location:transition" text="Location transition" disable_off="true" />
    418         <reference ref="ref_operator" />
     424        <reference ref="pole" />
    419425    </chunk>
    420426    <chunk id="rating_phases">
    421427        <combo key="rating" text="Power rating (kVA/MVA)" values="2700 kVA,12500 kVA,15 MVA,50 MVA,100 MVA" />
     
    57825788            <key key="man_made" value="embankment" />
    57835789        </item> <!-- Embankment -->
    57845790        <separator/>
     5791        <item name="Utility Pole" icon="presets/tower/pole.svg" type="node" preset_name_label="true">
     5792            <link wiki="Tag:man_made=utility_pole" />
     5793            <space />
     5794            <key key="man_made" value="utility_pole" />
     5795            <reference ref="pole" />
     5796            <reference ref="utilities" />
     5797            <preset_link preset_name="Pole" text="Similar preset:" />
     5798        </item> <!-- Utility Pole -->
    57855799        <item name="Street Lamp" icon="presets/misc/streetlamp.svg" type="node" preset_name_label="true">
    57865800            <link wiki="Tag:highway=street_lamp" />
    57875801            <space />
     
    60436057            <link wiki="Key:marker" />
    60446058            <space />
    60456059            <combo key="marker" text="Type" values="aerial,ground,pedestal,plate,post,stone" values_context="marker" match="key" />
    6046             <combo key="utility" text="Utility" values="chemical,gas,heating,hydrant,oil,power,sewerage,street_lighting,telecom,television,waste,water" values_searchable="true" />
     6060            <reference ref="utilities" />
    60476061            <optional>
    60486062                <reference ref="ref_operator" />
    60496063                <combo key="material" text="Material" values="concrete,metal,plastic,steel,stone,wood" />
     
    65146528            <space />
    65156529            <key key="power" value="pole" />
    65166530            <reference ref="power_pole" />
     6531            <preset_link preset_name="Utility Pole" text="Similar preset:" />
    65176532        </item> <!-- Pole -->
    65186533        <item name="Pole with Switch" icon="presets/power/pole_switch.svg" type="node" preset_name_label="true">
    65196534            <link wiki="Tag:power=pole" />
  • resources/data/validator/ignoretags.cfg

    diff --git a/resources/data/validator/ignoretags.cfg b/resources/data/validator/ignoretags.cfg
    index 5f377309d2..bda5ef0da4 100644
    a b K:land_area=administrative  
    238238K:attraction=summer_toboggan
    239239K:water=pool
    240240K:golf=path
    241 K:man_made=utility_pole
    242241K:site=geodesic
    243242K:site=stop_area
    244243K:site=parking
  • new file resources/images/presets/tower/pole.svg

    diff --git a/resources/images/presets/tower/pole.svg b/resources/images/presets/tower/pole.svg
    new file mode 100644
    index 0000000000..6dce4741c5
    - +  
     1<?xml version="1.0" encoding="UTF-8"?>
     2<svg width="12" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg">
     3 <path transform="translate(0 -1036.4)" d="M4 1036.362v2H0v6h3v-2h1v10h4v-10h1v2h3v-6H8v-2H4z" color-rendering="auto" fill="#fff" fill-rule="evenodd" image-rendering="auto" shape-rendering="auto" style="isolation:auto;mix-blend-mode:normal;white-space:normal"/>
     4 <path transform="translate(0 -1036.4)" d="m6 1037.4v15" fill="none" stroke="#8b4513" stroke-width="2"/>
     5 <path transform="translate(0 -1036.4)" d="m1 1039.4v4h1v-2h8v2h1v-4h-10z" color-rendering="auto" fill-rule="evenodd" image-rendering="auto" shape-rendering="auto" style="isolation:auto;mix-blend-mode:normal;white-space:normal"/>
     6</svg>
  • new file resources/images/presets/tower/pole_street_light.svg

    diff --git a/resources/images/presets/tower/pole_street_light.svg b/resources/images/presets/tower/pole_street_light.svg
    new file mode 100644
    index 0000000000..1fda8a212e
    - +  
     1<?xml version="1.0" encoding="UTF-8"?>
     2<svg width="13" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
     3 <defs>
     4  <path id="a" d="M1.89 2H.42v4h1.47v10h4.13V6h5.09V2H6.02V.09H1.89V2z"/>
     5  <path id="b" d="m3.97 1v15"/>
     6  <path id="c" d="M1.55 5.12h7.5V6h1.19V3.12H1.55v2z"/>
     7  <path id="d" d="M6.74 6h5.5v2.56c0 1.25-1.02 2.27-2.28 2.27H9.1c-1.31 0-2.36-1.06-2.36-2.36V6z"/>
     8  <path id="e" d="M7.86 6h3.25v2.14c0 .78-.64 1.4-1.42 1.37-.36-.02-.25-.01-.67-.03-.65-.02-1.16-.55-1.16-1.2V6z"/>
     9 </defs>
     10 <use fill="#fc0" xlink:href="#a"/>
     11 <g fill-opacity="0">
     12  <use stroke="#000" stroke-opacity="0" stroke-width="1.94" xlink:href="#a"/>
     13  <use xlink:href="#b"/>
     14  <use stroke="#8b4513" stroke-width="2" xlink:href="#b"/>
     15 </g>
     16 <use xlink:href="#c"/>
     17 <use fill-opacity="0" stroke="#000" stroke-opacity="0" stroke-width="2" xlink:href="#c"/>
     18 <use fill="#fc0" xlink:href="#d"/>
     19 <use fill="#f38c0a" xlink:href="#e"/>
     20</svg>
  • resources/styles/standard/elemstyles.mapcss

    diff --git a/resources/styles/standard/elemstyles.mapcss b/resources/styles/standard/elemstyles.mapcss
    index e09c569b59..010814d2ad 100644
    a b node[man_made=communications_tower] {  
    17831783    icon-image: "presets/tower/communications_tower.svg";
    17841784    set icon_z17;
    17851785}
     1786node|z17-[man_made=utility_pole][utility][utility!=power][utility!=street_lighting]::utility_casing {
     1787    utility_casing: #fdfdf8;
     1788}
     1789node|z17-[man_made=utility_pole][utility=gas]::utility_casing {
     1790    utility_casing: #ffff00;
     1791}
     1792node|z17-[man_made=utility_pole][utility=oil]::utility_casing {
     1793    utility_casing: #708090;
     1794}
     1795node|z17-[man_made=utility_pole][utility=telecom]::utility_casing,
     1796node|z17-[man_made=utility_pole][utility=television]::utility_casing {
     1797    utility_casing: #21bd00;
     1798}
     1799node|z17-[man_made=utility_pole][utility=water]::utility_casing {
     1800    utility_casing: #2090cf;
     1801}
     1802node|z17-[man_made=utility_pole][utility=sewerage]::utility_casing {
     1803    utility_casing: #1d5575;
     1804}
     1805node|z17-[man_made=utility_pole][utility=waste]::utility_casing {
     1806    utility_casing: #ee82ee;
     1807}
     1808node[man_made=utility_pole].utility_casing::utility_casing {
     1809    symbol-fill-color: prop("utility_casing");
     1810    symbol-shape: circle;
     1811    symbol-size: 12;
     1812}
     1813node[man_made=utility_pole] {
     1814    icon-image: "presets/tower/pole.svg";
     1815    set icon_z17;
     1816}
     1817node[man_made=utility_pole][utility~=power] {
     1818    icon-image: "presets/power/pole.svg";
     1819    set icon_z17;
     1820}
     1821node[man_made=utility_pole][utility~=street_lighting] {
     1822    icon-image: "presets/tower/pole_street_light.svg";
     1823    set icon_z17;
     1824}
    17861825
    17871826/****************/
    17881827/* telecom tags */