Ticket #23813: presets.patch
| File presets.patch, 7.8 KB (added by , 21 months ago) |
|---|
-
resources/data/defaultpresets.xml
5123 5123 <check key="recycling:beverage_cartons" text="Beverage cartons" /> 5124 5124 <check key="recycling:glass" text="Glass" /> 5125 5125 <check key="recycling:glass_bottles" text="Glass Bottles" /> 5126 <check key="recycling:cans" text="Cans" />5127 5126 <check key="recycling:clothes" text="Clothes" /> 5128 5127 <check key="recycling:shoes" text="Shoes" /> 5128 <check key="recycling:cans" text="Cans" /> 5129 5129 <check key="recycling:scrap_metal" text="Scrap Metal" /> 5130 <check key="recycling:metal_packaging" text="Metal Packaging"/> 5130 5131 <check key="recycling:wood" text="Wood" /> 5131 5132 <check key="recycling:green_waste" text="Green Waste" /> 5133 <check key="recycling:cooking_oil" text="Cooking Oil"/> 5132 5134 <check key="recycling:waste" text="Waste" /> 5133 5135 <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" /> 5135 5137 <check key="recycling:electrical_appliances" text="Electrical Appliances" /> 5136 5138 </checkgroup> 5137 5139 </item> <!-- Recycling Container--> … … 5155 5157 <check key="recycling:beverage_cartons" text="Beverage cartons" /> 5156 5158 <check key="recycling:glass" text="Glass" /> 5157 5159 <check key="recycling:glass_bottles" text="Glass Bottles" /> 5158 <check key="recycling:cans" text="Cans" />5159 5160 <check key="recycling:clothes" text="Clothes" /> 5160 5161 <check key="recycling:shoes" text="Shoes" /> 5162 <check key="recycling:cans" text="Cans" /> 5161 5163 <check key="recycling:scrap_metal" text="Scrap Metal" /> 5164 <check key="recycling:metal_packaging" text="Metal Packaging"/> 5162 5165 <check key="recycling:wood" text="Wood" /> 5163 5166 <check key="recycling:green_waste" text="Green Waste" /> 5167 <check key="recycling:cooking_oil" text="Cooking Oil"/> 5164 5168 <check key="recycling:waste" text="Waste" /> 5165 5169 <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" /> 5167 5171 <check key="recycling:electrical_appliances" text="Electrical Appliances" /> 5168 5172 </checkgroup> 5169 5173 <reference ref="link_contact_address_payment" /> -
src/org/openstreetmap/josm/actions/CreateCircleAction.java
195 195 196 196 double radiusInMeters = nodes.get(0).greatCircleDistance(ll2); 197 197 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)); 199 199 // an odd number of nodes makes the distribution uneven 200 200 if ((numberOfNodesInCircle % 2) != 0) { 201 201 // add 1 to make it even 202 202 numberOfNodesInCircle += 1; 203 203 } 204 if (numberOfNodesInCircle < 6) {205 numberOfNodesInCircle = 6;204 if (numberOfNodesInCircle < 12) { 205 numberOfNodesInCircle = 12; 206 206 } 207 207 208 208 // Order nodes by angle
