Changeset 11847 in josm
- Timestamp:
- 2017-04-06T23:16:04+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r11746 r11847 78 78 } else { 79 79 String z = map.get("zoom"); 80 b = positionToBounds(parseDouble(map, "lat"), 81 parseDouble(map, "lon"), 80 b = positionToBounds(parseDouble(map, "lat"), parseDouble(map, "lon"), 82 81 z == null ? 18 : Integer.parseInt(z)); 83 82 } 84 } catch ( NumberFormatException | ArrayIndexOutOfBoundsException ex) {85 Main.error(ex );83 } catch (IllegalArgumentException | ArrayIndexOutOfBoundsException ex) { 84 Main.error(ex, url); 86 85 } 87 86 return b; … … 132 131 if (map.containsKey(key)) 133 132 return Double.parseDouble(map.get(key)); 134 return Double.parseDouble(map.get('m'+key)); 133 if (map.containsKey('m'+key)) 134 return Double.parseDouble(map.get('m'+key)); 135 throw new IllegalArgumentException(map.toString() + " does not contain " + key); 135 136 } 136 137
Note:
See TracChangeset
for help on using the changeset viewer.