Changeset 8136 in josm


Ignore:
Timestamp:
2015-03-13T21:27:19+01:00 (4 years ago)
Author:
Klumbumbus
Message:

see #10837 - add building:part=yes, building:levels, height, building:min_level and min_height

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r8135 r8136  
    50625062            <combo key="building" text="Building" values="yes,roof,garage,garages,industrial,school,hangar,commercial,barn,farm_auxiliary,transportation,greenhouse,office,university,hospital,warehouse,retail,shed,cowshed,construction" values_context="building" default="yes" match="keyvalue!" values_searchable="true" />
    50635063            <text key="name" text="Name" />
     5064            <combo key="building:levels" text="Levels" values="1,2,3,4,5,6,7,8,9,10,11" text_context="building" />
     5065            <text key="height" text="Height (meters)" />
    50645066        </item> <!-- Building -->
    50655067        <item name="Residential Building" icon="styles/standard/misc/landmark/building.png" type="node,closedway,relation" preset_name_label="true">
     
    50805082            <combo key="building" text="Building" values="residential,apartments,house,hut,dormitory,terrace,detached,farm,roof" default="residential" match="keyvalue!" values_context="building" values_searchable="true" />
    50815083            <text key="name" text="Name" />
     5084            <combo key="building:levels" text="Levels" values="1,2,3,4,5,6,7,8,9,10,11" text_context="building" />
     5085            <text key="height" text="Height (meters)" />
    50825086        </item> <!-- Residential Building -->
     5087            <item name="Building part" icon="styles/standard/misc/landmark/building.png" type="closedway,relation" preset_name_label="true">
     5088            <link href="http://wiki.openstreetmap.org/wiki/Key:building:part" />
     5089            <space />
     5090            <key key="building:part" value="yes" />
     5091            <text key="name" text="Name" />
     5092            <combo key="building:levels" text="Levels" values="1,2,3,4,5,6,7,8,9,10,11" text_context="building" />
     5093            <combo key="building:min_level" text="Skipped Levels" values="1,2,3,4,5,6,7,8,9,10" text_context="building" />
     5094            <text key="height" text="Height (meters)" />
     5095            <text key="min_height" text="Skipped height (meters)" />
     5096        </item> <!-- Building part -->
    50835097        <item name="Entrance" icon="styles/standard/misc/entrance-yes.png" type="node" preset_name_label="true">
    50845098            <link href="http://wiki.openstreetmap.org/wiki/Key:entrance"
  • trunk/data/validator/geometry.mapcss

    r8135 r8136  
    6464node[aeroway=apron],
    6565node[power=plant],
     66node[building:part=yes],
    6667node[source:outline] {
    6768  throwWarning: tr("{0} on a node. Should be drawn as an area.", "{0.tag}");
  • trunk/styles/standard/elemstyles.mapcss

    r8135 r8136  
    291291    fill-color: building#cb9999;
    292292}
     293area[building:part=yes] {
     294    fill-color: building#dcbbbb;
     295}
    293296node[building][!building?!] {
    294297    icon-image: "misc/landmark/building.png";
     
    331334    text: auto;
    332335}
    333 node[building=entrance] {
     336node[building=entrance],
     337node[building:part] {
    334338    icon-image: "misc/deprecated.png";
    335339    set icon_z17;
Note: See TracChangeset for help on using the changeset viewer.