Changeset 18400 in josm for trunk/resources


Ignore:
Timestamp:
2022-03-13T13:46:52+01:00 (3 years ago)
Author:
stoecker
Message:

fix #20963 - patch by skyper - improve build presets, fix svg mime types

Location:
trunk/resources
Files:
1 added
69 edited

Legend:

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

    r18386 r18400  
    996996            <link wiki="Key:construction" />
    997997            <key key="highway" value="construction" />
    998             <combo key="construction" text="Highway type" values="motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary,secondary_link,tertiary,tertiary_link,unclassified,residential,service,bus_guideway,bridleway,living_street,pedestrian,track,path,footway,cycleway,steps" values_context="Highway" />
     998            <combo key="construction" text="Highway type" values_sort="false" values_context="Highway">
     999                <list_entry value="motorway" display_value="Motorway" icon="presets/transport/way/way_motorway.svg" />
     1000                <list_entry value="motorway_link" display_value="Motorway Link" icon="presets/transport/way/way_motorway_link.svg" />
     1001                <list_entry value="trunk" display_value="Trunk" icon="presets/transport/way/way_trunk.svg" />
     1002                <list_entry value="trunk_link" display_value="Trunk Link" icon="presets/transport/way/way_trunk_link.svg" />
     1003                <list_entry value="primary" display_value="Primary" icon="presets/transport/way/way_primary.svg" />
     1004                <list_entry value="primary_link" display_value="Primary Link" icon="presets/transport/way/way_primary_link.svg" />
     1005                <list_entry value="secondary" display_value="Secondary" icon="presets/transport/way/way_secondary.svg" />
     1006                <list_entry value="secondary_link" display_value="Secondary" icon="presets/transport/way/way_secondary_link.svg" />
     1007                <list_entry value="tertiary" display_value="Tertiary" icon="presets/transport/way/way_tertiary.svg" />
     1008                <list_entry value="tertiary_link" display_value="Tertiary Link" icon="presets/transport/way/way_tertiary_link.svg" />
     1009                <list_entry value="unclassified" display_value="Unclassified" icon="presets/transport/way/way_unclassified.svg" />
     1010                <list_entry value="residential" display_value="Residential" icon="presets/transport/way/way_residential.svg" />
     1011                <list_entry value="service" display_value="Service" icon="presets/transport/way/way_service.svg" />
     1012                <list_entry value="pedestrian" display_value="Pedestrian" icon="presets/transport/way/way_pedestrian.svg" />
     1013                <list_entry value="bus_guideway" display_value="Bus Guideway" icon="presets/transport/railway/bus_guideway.svg" />
     1014                <list_entry value="busway" display_value="Bus Rapid Transit" />
     1015                <list_entry value="escape" display_value="Escape" icon="presets/transport/way/way_escape.svg" />
     1016                <list_entry value="raceway" display_value="Raceway" icon="presets/sport/raceway.svg"  />
     1017                <list_entry value="track" display_value="Track" icon="presets/transport/way/track.svg" />
     1018                <list_entry value="path" display_value="Path" icon="presets/transport/way/path.svg" />
     1019                <list_entry value="bridleway" display_value="Dedicated Bridleway" icon="presets/transport/way/dedicated_bridleway.svg" />
     1020                <list_entry value="cycleway" display_value="Dedicated Cycleway" icon="presets/transport/way/dedicated_cycleway.svg" />
     1021                <list_entry value="footway" display_value="Dedicated Footway" icon="presets/transport/way/dedicated_footway.svg" />
     1022                <list_entry value="steps" display_value="Steps" icon="presets/transport/way/steps.svg" />
     1023            </combo>
    9991024            <optional>
    10001025                <text key="name" text="Name" />
     
    24432468            <link wiki="Key:construction" />
    24442469            <key key="railway" value="construction" />
    2445             <combo key="construction" text="Railway type" values="rail,narrow_gauge,monorail,preserved,light_rail,subway,tram,funicular" />
     2470            <combo key="construction" text="Railway type" values_sort="false">
     2471                <list_entry value="rail" display_value="Rail" icon="presets/transport/railway/rail.svg" />
     2472                <list_entry value="narrow_gauge" display_value="Narrow Gauge Rail" icon="presets/transport/railway/narrow_gauge_rail.svg" />
     2473                <list_entry value="monorail" display_value="Monorail" icon="presets/transport/railway/monorail.svg" />
     2474                <list_entry value="preserved" display_value="Preserved" icon="presets/transport/railway/preserved.svg" />
     2475                <list_entry value="light_rail" display_value="Light Rail" icon="presets/transport/railway/light_rail.svg" />
     2476                <list_entry value="subway" display_value="Subway" icon="presets/transport/railway/subway.svg" />
     2477                <list_entry value="tram" display_value="Tram" icon="presets/transport/railway/tram.svg" />
     2478                <list_entry value="funicular" display_value="Funicular" icon="presets/transport/railway/funicular.svg" />
     2479            </combo>
    24462480            <optional>
    24472481                <combo key="usage" text="Usage" values="main,branch,industrial,military,tourism,freight" />
     
    56195653            <combo key="building" text="Building" values="allotment_house,bakehouse,barn,basilica,boathouse,bunker,cabin,carport,cathedral,chapel,church,college,commercial,construction,cowshed,digester,farm_auxiliary,fire_station,garage,garages,gasometer,gatehouse,grandstand,greenhouse,hangar,hospital,industrial,kindergarten,kiosk,manufacture,monastery,mosque,office,parking,public,retail,roof,ruins,school,service,shed,silo,stable,storage_tank,sty,supermarket,synagogue,temple,tent,toilets,train_station,transformer_tower,transportation,university,warehouse,yes" values_context="building" default="yes" match="keyvalue!" values_searchable="true" />
    56205654            <optional>
    5621                 <text key="name" text="Name" />
     5655                <reference ref="name_operator" />
    56225656                <combo key="building:levels" text="Levels" values="1,2,3,4,5,6,7,8,9,10,11" text_context="building" />
    56235657                <text key="height" text="Height (meters)" length="7" />
     
    56305664            <combo key="building" text="Building" values="yes,residential,apartments,ger,house,hotel,hut,bungalow,dormitory,terrace,detached,farm,stilt_house" default="residential" match="keyvalue!" values_context="building" values_searchable="true" />
    56315665            <optional>
    5632                 <text key="name" text="Name" />
     5666                <reference ref="name_operator" />
    56335667                <combo key="building:levels" text="Levels" values="1,2,3,4,5,6,7,8,9,10,11" text_context="building" />
    56345668                <text key="height" text="Height (meters)" length="7" />
     
    56405674            <space />
    56415675            <combo key="building:part" text="Building part" values="allotment_house,bakehouse,barn,college,commercial,construction,cowshed,farm_auxiliary,garage,garages,greenhouse,hangar,hospital,industrial,office,parking,retail,roof,ruins,school,shed,supermarket,toilets,transportation,university,warehouse,yes" values_context="building" default="yes" match="keyvalue!" values_searchable="true" />
    5642             <text key="name" text="Name" />
    56435676            <combo key="building:levels" text="Levels" values="1,2,3,4,5,6,7,8,9,10,11" text_context="building" />
    56445677            <combo key="building:min_level" text="Skipped Levels" values="1,2,3,4,5,6,7,8,9,10" text_context="building" />
     
    56465679            <text key="min_height" text="Skipped height (meters)" />
    56475680        </item> <!-- Building part -->
     5681        <item name="Building construction" icon="presets/landmark/building_construction.svg" type="node,closedway,multipolygon" preset_name_label="true">
     5682            <link wiki="Tag:building=construction" />
     5683            <space />
     5684            <key key="building" value="construction" />
     5685            <combo key="construction" text="Building type" values="allotment_house,bakehouse,barn,basilica,boathouse,bunker,cabin,carport,cathedral,chapel,church,college,commercial,cowshed,digester,farm_auxiliary,fire_station,garage,garages,gasometer,gatehouse,grandstand,greenhouse,hangar,hospital,industrial,kindergarten,kiosk,manufacture,monastery,mosque,office,parking,public,retail,roof,ruins,school,service,shed,silo,stable,storage_tank,sty,supermarket,synagogue,temple,tent,toilets,train_station,transformer_tower,transportation,university,warehouse" values_context="building" />
     5686            <optional>
     5687                <reference ref="name_operator" />
     5688                <combo key="building:levels" text="Levels" values="1,2,3,4,5,6,7,8,9,10,11" text_context="building" />
     5689                <text key="height" text="Height (meters)" length="7" />
     5690            </optional>
     5691            <preset_link preset_name="Address" />
     5692        </item> <!-- Building construction -->
    56485693        <item name="Entrance" icon="presets/misc/entrance_yes.svg" type="node" preset_name_label="true">
    56495694            <link wiki="Key:entrance" />
     
    89969041            <space />
    89979042            <key key="landuse" value="construction" />
    8998             <reference ref="optional_name" />
     9043            <combo key="construction" text="Construction type" values_context="landuse" values_sort="false">
     9044                <list_entry value="residential" display_value="Residential Area" icon="presets/landmark/building.svg" />
     9045                <list_entry value="education" display_value="Education" icon="presets/education/education.svg" />
     9046                <list_entry value="retail" display_value="Retail" icon="presets/shop/mall.svg" icon_size="16" />
     9047                <list_entry value="commercial" display_value="Commercial" icon="presets/landuse/commercial.svg" icon_size="16" />
     9048                <list_entry value="industrial" display_value="Industrial" icon="presets/landmark/works.svg" />
     9049                <list_entry value="garages" display_value="Garages" icon="presets/landuse/garages.svg" />
     9050                <list_entry value="railway" display_value="Railway Land" icon="presets/landuse/railway.svg" icon_size="16" />
     9051                <list_entry value="military" display_value="Military" icon="presets/landuse/military.svg" icon_size="16" />
     9052                <list_entry value="religous" display_value="Religious" icon="presets/religion/religion.svg" />
     9053                <list_entry value="cemetery" display_value="Cemetery" icon="presets/landuse/cemetery.svg" />
     9054            </combo>
     9055            <reference ref="optional_name_operator" />
    89999056        </item> <!-- Construction Area -->
    90009057        <item name="Brownfield" icon="presets/landuse/brownfield.svg" type="closedway,multipolygon" preset_name_label="true">
  • trunk/resources/images/cut.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/data/changeset.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/about/facebook-square.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/about/github-square.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/about/openstreetmap.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/about/twitter-square.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/bookmark-new.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/bookmark.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/down.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/first.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/last.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/magic-wand.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/next.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/previous.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/taginfo.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/dialogs/up.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/external-link.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/help/home.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/listsearch.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/no_upload.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/preferences/color.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/craft/hvac.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/craft/key_cutter.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/craft/locksmith.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/health/laboratory.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/gas_well.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/gas_well_donkey.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/oil_well.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/oil_well_donkey.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/petroleum_well.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/pump.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/pump_gas.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/pump_oil.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/pump_sewage.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/pump_steam.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/pump_water.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/water_well_donkey.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/well_donkey.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/windpump.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/windpump_gas.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/windpump_oil.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/windpump_sewage.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landmark/windpump_steam.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/landuse/flowerbed.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/leisure/outdoor_seating.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/leisure/resort.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/misc/manhole.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/misc/street_cabinet.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/place/cityblock.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/heliostat.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_biofuel.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_coal.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_gas.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_geothermal.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_nuclear.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_oil.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_plain.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_waste.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_water.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/power/plant_wind.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/tower/pole.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/tower/pole_street_light.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/transport/rocket.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/transport/way/relation_connectivity.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/presets/vehicle/mini_bumps.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/statusline/bbox.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/images/wikimedia_commons.svg

    • Property svn:mime-type set to image/svg+xml
  • trunk/resources/styles/standard/elemstyles.mapcss

    r18324 r18400  
    332332    fill-color: buildingpart#dcbbbb;
    333333}
     334area[building=construction][!construction] {
     335    fill-color: building#cb9999;
     336    width: 1;
     337    color: construction#ffff00;
     338    dashes: 9,9;
     339}
     340area[building=construction][construction] {
     341    z-index: 1;
     342    fill-color: buildingpart#dcbbbb;
     343    width: 1;
     344    dashes: 9,9;
     345    casing-width: 1;
     346    casing-color: construction#ffff00;
     347    casing-linecap: round;
     348    casing-dashes: 9,9;
     349}
    334350node[building][!building?!] {
    335351    icon-image: "presets/landmark/building.svg";
     
    346362node[building=transformer_tower] {
    347363    icon-image: "presets/power/transformer_tower.svg";
     364    set icon_z17;
     365}
     366node[building=construction] {
     367    icon-image: "presets/landmark/building_construction.svg";
    348368    set icon_z17;
    349369}
Note: See TracChangeset for help on using the changeset viewer.