Changeset 1689 in josm


Ignore:
Timestamp:
Jun 22, 2009 5:37:36 PM (4 years ago)
Author:
stoecker
Message:

fixed URL parsing a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java

    r1677 r1689  
    2828                    new LatLon(Double.parseDouble(bbox[1]), Double.parseDouble(bbox[0])), 
    2929                    new LatLon(Double.parseDouble(bbox[3]), Double.parseDouble(bbox[2]))); 
    30  
     30            } else if (map.containsKey("minlat")) { 
     31                String s = map.get("minlat"); 
     32                Double minlat = Double.parseDouble(s); 
     33                s = map.get("minlon"); 
     34                Double minlon = Double.parseDouble(s); 
     35                s = map.get("maxlat"); 
     36                Double maxlat = Double.parseDouble(s); 
     37                s = map.get("maxlon"); 
     38                Double maxlon = Double.parseDouble(s); 
     39                b = new Bounds(new LatLon(minlat, minlon), new LatLon(maxlat, maxlon)); 
    3140            } else { 
    3241                double size = 180.0 / Math.pow(2, Integer.parseInt(map.get("zoom"))); 
Note: See TracChangeset for help on using the changeset viewer.