Changeset 16475 in josm


Ignore:
Timestamp:
2020-05-23T14:36:24+02:00 (2 weeks ago)
Author:
Klumbumbus
Message:

fix #19271 - Support man_made=street_cabinet on areas

Location:
trunk/resources
Files:
2 edited

Legend:

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

    r16474 r16475  
    51785178            <combo key="opening_hours" text="Operation times" values="Mo-Fr 22:00-05:00" values_no_i18n="true" />
    51795179        </item> <!-- Street Lamp -->
    5180         <item name="Street cabinet" icon="presets/misc/street_cabinet.svg" type="node" preset_name_label="true">
     5180        <item name="Street cabinet" icon="presets/misc/street_cabinet.svg" type="node,closedway" preset_name_label="true">
    51815181            <link wiki="Tag:man_made=street_cabinet" />
    51825182            <key key="man_made" value="street_cabinet" />
     
    55745574        </item> <!-- Power Compensator -->
    55755575        <separator/>
    5576         <item name="Power Street Cabinet" icon="presets/power/cable_distribution_cabinet.svg" type="node" preset_name_label="true">
     5576        <item name="Power Street Cabinet" icon="presets/power/cable_distribution_cabinet.svg" type="node,closedway" preset_name_label="true">
    55775577            <link wiki="Tag:man_made=street_cabinet" />
    55785578            <key key="man_made" value="street_cabinet" />
     
    57115711    </group> <!-- Power -->
    57125712    <group name="Telecom" icon="presets/telecom/telecom.svg">
    5713         <item name="Telecom Street Cabinet" icon="presets/telecom/telecom_cabinet.svg" type="node" preset_name_label="true">
     5713        <item name="Telecom Street Cabinet" icon="presets/telecom/telecom_cabinet.svg" type="node,closedway" preset_name_label="true">
    57145714            <link wiki="Tag:man_made=street_cabinet" />
    57155715            <key key="man_made" value="street_cabinet" />
  • trunk/resources/styles/standard/elemstyles.mapcss

    r16455 r16475  
    12551255area[power=converter],
    12561256area[power=switchgear],
    1257 area[power=generator] {
     1257area[power=generator],
     1258area[man_made=street_cabinet][street_cabinet=power] {
    12581259    fill-color: power#eeeeee;
    1259 }
    1260 node[man_made=street_cabinet] {
    1261     icon-image: "presets/misc/street_cabinet.svg";
    1262     set icon_z17;
    12631260}
    12641261node[man_made=street_cabinet][street_cabinet=power] {
     
    13741371/*****************/
    13751372
     1373area[man_made=street_cabinet][street_cabinet!=power], /* power street cabinet has own style above */
    13761374area[man_made=beacon],
    13771375area[man_made=bridge],
     
    13881386    fill-color: manmade#d8d8d8;
    13891387}
     1388node[man_made=street_cabinet][street_cabinet!=power] {
     1389    icon-image: "presets/misc/street_cabinet.svg";
     1390    set icon_z17;
     1391}
    13901392node[man_made=beacon] {
    13911393    icon-image: "presets/landmark/beacon.svg";
     
    16101612area[telecom=exchange],
    16111613area[telecom=connection_point],
    1612 area[telecom=service_device] {
     1614area[telecom=service_device],
     1615area[man_made=street_cabinet][street_cabinet=telecom] {
    16131616    fill-color: telecom#d8d8d8; /* same as man_made */
    16141617}
Note: See TracChangeset for help on using the changeset viewer.