diff --git a/resources/data/defaultpresets.xml b/resources/data/defaultpresets.xml
index 13519ba957..f89aff8ba8 100644
a
|
b
|
|
409 | 409 | <reference ref="voltage_frequency" /> |
410 | 410 | </optional> |
411 | 411 | </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"> |
413 | 416 | <text key="height" text="Height (meters)" length="7" /> |
414 | 417 | <combo key="material" text="Material" values="concrete,metal,plastic,steel,stone,wood" /> |
| 418 | <reference ref="ref_operator" /> |
| 419 | </chunk> |
| 420 | <chunk id="power_pole"> |
415 | 421 | <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" /> |
416 | 422 | <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" /> |
417 | 423 | <check key="location:transition" text="Location transition" disable_off="true" /> |
418 | | <reference ref="ref_operator" /> |
| 424 | <reference ref="pole" /> |
419 | 425 | </chunk> |
420 | 426 | <chunk id="rating_phases"> |
421 | 427 | <combo key="rating" text="Power rating (kVA/MVA)" values="2700 kVA,12500 kVA,15 MVA,50 MVA,100 MVA" /> |
… |
… |
|
5782 | 5788 | <key key="man_made" value="embankment" /> |
5783 | 5789 | </item> <!-- Embankment --> |
5784 | 5790 | <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 --> |
5785 | 5799 | <item name="Street Lamp" icon="presets/misc/streetlamp.svg" type="node" preset_name_label="true"> |
5786 | 5800 | <link wiki="Tag:highway=street_lamp" /> |
5787 | 5801 | <space /> |
… |
… |
|
6043 | 6057 | <link wiki="Key:marker" /> |
6044 | 6058 | <space /> |
6045 | 6059 | <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" /> |
6047 | 6061 | <optional> |
6048 | 6062 | <reference ref="ref_operator" /> |
6049 | 6063 | <combo key="material" text="Material" values="concrete,metal,plastic,steel,stone,wood" /> |
… |
… |
|
6514 | 6528 | <space /> |
6515 | 6529 | <key key="power" value="pole" /> |
6516 | 6530 | <reference ref="power_pole" /> |
| 6531 | <preset_link preset_name="Utility Pole" text="Similar preset:" /> |
6517 | 6532 | </item> <!-- Pole --> |
6518 | 6533 | <item name="Pole with Switch" icon="presets/power/pole_switch.svg" type="node" preset_name_label="true"> |
6519 | 6534 | <link wiki="Tag:power=pole" /> |
diff --git a/resources/data/validator/ignoretags.cfg b/resources/data/validator/ignoretags.cfg
index 5f377309d2..bda5ef0da4 100644
a
|
b
|
K:land_area=administrative
|
238 | 238 | K:attraction=summer_toboggan |
239 | 239 | K:water=pool |
240 | 240 | K:golf=path |
241 | | K:man_made=utility_pole |
242 | 241 | K:site=geodesic |
243 | 242 | K:site=stop_area |
244 | 243 | K:site=parking |
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> |
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> |
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] {
|
1783 | 1783 | icon-image: "presets/tower/communications_tower.svg"; |
1784 | 1784 | set icon_z17; |
1785 | 1785 | } |
| 1786 | node|z17-[man_made=utility_pole][utility][utility!=power][utility!=street_lighting]::utility_casing { |
| 1787 | utility_casing: #fdfdf8; |
| 1788 | } |
| 1789 | node|z17-[man_made=utility_pole][utility=gas]::utility_casing { |
| 1790 | utility_casing: #ffff00; |
| 1791 | } |
| 1792 | node|z17-[man_made=utility_pole][utility=oil]::utility_casing { |
| 1793 | utility_casing: #708090; |
| 1794 | } |
| 1795 | node|z17-[man_made=utility_pole][utility=telecom]::utility_casing, |
| 1796 | node|z17-[man_made=utility_pole][utility=television]::utility_casing { |
| 1797 | utility_casing: #21bd00; |
| 1798 | } |
| 1799 | node|z17-[man_made=utility_pole][utility=water]::utility_casing { |
| 1800 | utility_casing: #2090cf; |
| 1801 | } |
| 1802 | node|z17-[man_made=utility_pole][utility=sewerage]::utility_casing { |
| 1803 | utility_casing: #1d5575; |
| 1804 | } |
| 1805 | node|z17-[man_made=utility_pole][utility=waste]::utility_casing { |
| 1806 | utility_casing: #ee82ee; |
| 1807 | } |
| 1808 | node[man_made=utility_pole].utility_casing::utility_casing { |
| 1809 | symbol-fill-color: prop("utility_casing"); |
| 1810 | symbol-shape: circle; |
| 1811 | symbol-size: 12; |
| 1812 | } |
| 1813 | node[man_made=utility_pole] { |
| 1814 | icon-image: "presets/tower/pole.svg"; |
| 1815 | set icon_z17; |
| 1816 | } |
| 1817 | node[man_made=utility_pole][utility~=power] { |
| 1818 | icon-image: "presets/power/pole.svg"; |
| 1819 | set icon_z17; |
| 1820 | } |
| 1821 | node[man_made=utility_pole][utility~=street_lighting] { |
| 1822 | icon-image: "presets/tower/pole_street_light.svg"; |
| 1823 | set icon_z17; |
| 1824 | } |
1786 | 1825 | |
1787 | 1826 | /****************/ |
1788 | 1827 | /* telecom tags */ |