Ticket #23813: presets.patch

File presets.patch, 7.8 KB (added by pavel.beranek@…, 21 months ago)
  • resources/data/defaultpresets.xml

     
    51235123                <check key="recycling:beverage_cartons" text="Beverage cartons" />
    51245124                <check key="recycling:glass" text="Glass" />
    51255125                <check key="recycling:glass_bottles" text="Glass Bottles" />
    5126                 <check key="recycling:cans" text="Cans" />
    51275126                <check key="recycling:clothes" text="Clothes" />
    51285127                <check key="recycling:shoes" text="Shoes" />
     5128                <check key="recycling:cans" text="Cans" />
    51295129                <check key="recycling:scrap_metal" text="Scrap Metal" />
     5130                <check key="recycling:metal_packaging" text="Metal Packaging"/>
    51305131                <check key="recycling:wood" text="Wood" />
    51315132                <check key="recycling:green_waste" text="Green Waste" />
     5133                <check key="recycling:cooking_oil" text="Cooking Oil"/>
    51325134                <check key="recycling:waste" text="Waste" />
    51335135                <check key="recycling:batteries" text="Batteries" />
    5134                 <check key="recycling:small_appliances" text="Small Appliances" />
     5136                <check key="recycling:small_electrical_appliances" text="Small Electrical Appliances" />
    51355137                <check key="recycling:electrical_appliances" text="Electrical Appliances" />
    51365138            </checkgroup>
    51375139        </item> <!-- Recycling Container-->
     
    51555157                <check key="recycling:beverage_cartons" text="Beverage cartons" />
    51565158                <check key="recycling:glass" text="Glass" />
    51575159                <check key="recycling:glass_bottles" text="Glass Bottles" />
    5158                 <check key="recycling:cans" text="Cans" />
    51595160                <check key="recycling:clothes" text="Clothes" />
    51605161                <check key="recycling:shoes" text="Shoes" />
     5162                <check key="recycling:cans" text="Cans" />
    51615163                <check key="recycling:scrap_metal" text="Scrap Metal" />
     5164                <check key="recycling:metal_packaging" text="Metal Packaging"/>
    51625165                <check key="recycling:wood" text="Wood" />
    51635166                <check key="recycling:green_waste" text="Green Waste" />
     5167                <check key="recycling:cooking_oil" text="Cooking Oil"/>
    51645168                <check key="recycling:waste" text="Waste" />
    51655169                <check key="recycling:batteries" text="Batteries" />
    5166                 <check key="recycling:small_appliances" text="Small Appliances" />
     5170                <check key="recycling:small_electrical_appliances" text="Small Eletrical Appliances" />
    51675171                <check key="recycling:electrical_appliances" text="Electrical Appliances" />
    51685172            </checkgroup>
    51695173            <reference ref="link_contact_address_payment" />
  • src/org/openstreetmap/josm/actions/CreateCircleAction.java

     
    195195
    196196        double radiusInMeters = nodes.get(0).greatCircleDistance(ll2);
    197197
    198         int numberOfNodesInCircle = (int) Math.ceil(6.0 * Math.pow(radiusInMeters, 0.5));
     198        int numberOfNodesInCircle = (int) Math.ceil(10.0 * Math.pow(radiusInMeters, 0.5));
    199199        // an odd number of nodes makes the distribution uneven
    200200        if ((numberOfNodesInCircle % 2) != 0) {
    201201            // add 1 to make it even
    202202            numberOfNodesInCircle += 1;
    203203        }
    204         if (numberOfNodesInCircle < 6) {
    205             numberOfNodesInCircle = 6;
     204        if (numberOfNodesInCircle < 12) {
     205            numberOfNodesInCircle = 12;
    206206        }
    207207
    208208        // Order nodes by angle