Changeset 15953 in josm
- Timestamp:
- 2020-02-28T21:56:12+01:00 (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/ignoretags.cfg
r15931 r15953 412 412 K:healthcare=hospital 413 413 K:healthcare=pharmacy 414 K:healthcare=clinic 415 K:healthcare=centre 416 K:healthcare=physiotherapist 414 417 K:golf=cartpath 415 418 K:man_made=water_tap -
trunk/data/validator/unnecessary.mapcss
r15761 r15953 113 113 *[name][name=~/^(?i)(cemetery|cementerio|cimetière|cmentarz|friedhof)$/][amenity=grave_yard], 114 114 *[name][name=~/^(?i)(cemetery|cementerio|cimetière|cmentarz|friedhof)$/][landuse=cemetery], 115 *[name][name=~/^(?i)(mairie|rathaus)$/][amenity=townhall],116 115 *[name][name=~/^(?i)(monument aux morts|war memorial)$/][historic=memorial][memorial=war_memorial], 117 116 *[name][name=~/^(?i)(school|école|Школа)$/][building=school], -
trunk/src/org/openstreetmap/josm/gui/autofilter/AutoFilterRule.java
r15926 r15953 146 146 public static AutoFilterRule[] defaultRules() { 147 147 return new AutoFilterRule[]{ 148 new AutoFilterRule("admin_level", 11), 149 new AutoFilterRule("building:levels", 17), 150 new AutoFilterRule("frequency", 5), 151 new AutoFilterRule("gauge", 5), 152 new AutoFilterRule("incline", 13) 153 .setValueExtractor(s -> Integer.parseInt(s.replaceAll("%$", ""))) 154 .setValueFormatter(v -> v + "\u2009%"), 155 new AutoFilterRule("lanes", 13), 156 new AutoFilterRule("layer", 16) 157 .setDefaultValueSupplier(AutoFilterRule::defaultLayer), 148 158 new AutoFilterRule("level", 17) 149 159 // #17109, support values like 0.5 or 1.5 - level values are multiplied by 2 when parsing, values are divided by 2 for formatting 150 160 .setValueExtractor(s -> (int) (Double.parseDouble(s) * 2.)) 151 161 .setValueFormatter(v -> DecimalFormat.getInstance(Locale.ROOT).format(v / 2.)), 152 new AutoFilterRule("layer", 16)153 .setDefaultValueSupplier(AutoFilterRule::defaultLayer),154 162 new AutoFilterRule("maxspeed", 16) 155 163 .setValueExtractor(s -> Integer.parseInt(s.replace(" mph", ""))), 156 164 new AutoFilterRule("voltage", 5) 157 .setValueFormatter(s -> s % 1000 == 0 ? (s / 1000) + "kV" : s + "V"), 158 new AutoFilterRule("building:levels", 17), 159 new AutoFilterRule("gauge", 5), 160 new AutoFilterRule("frequency", 5), 161 new AutoFilterRule("incline", 13) 162 .setValueExtractor(s -> Integer.parseInt(s.replaceAll("%$", ""))) 163 .setValueFormatter(v -> v + "\u2009%"), 164 new AutoFilterRule("lanes", 13), 165 new AutoFilterRule("admin_level", 11) 165 .setValueFormatter(s -> s % 1000 == 0 ? (s / 1000) + "kV" : s + "V") 166 166 }; 167 167 } … … 206 206 @Override 207 207 public String toString() { 208 return key + '['+ minZoomLevel + ']';208 return key + " [" + minZoomLevel + ']'; 209 209 } 210 210 }
Note:
See TracChangeset
for help on using the changeset viewer.