Ignore:
Timestamp:
2009-07-16T00:41:38+02:00 (15 years ago)
Author:
framm
Message:
  • minor changes in conjunction with the Walking Papers plugin.
File:
1 edited

Legend:

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

    r1740 r1797  
    88
    99public class OsmUrlToBounds {
     10   
    1011    public static Bounds parse(String url) {
    1112        int i = url.indexOf('?');
     
    5657    }
    5758
    58     static public int getZoom(Bounds b)
    59     {
     59    static public int getZoom(Bounds b) {
    6060        // convert to mercator (for calculation of zoom only)
    6161        double latMin = Math.log(Math.tan(Math.PI/4.0+b.min.lat()/180.0*Math.PI/2.0))*180.0/Math.PI;
     
    7272    }
    7373
    74     static public String getURL(Bounds b)
    75     {
     74    static public String getURL(Bounds b) {
    7675        return getURL(b.getCenter(), getZoom(b));
    7776    }
    7877
    79     static public String getURL(LatLon pos, int zoom)
    80     {
     78    static public String getURL(LatLon pos, int zoom) {
    8179        // Truncate lat and lon to something more sensible
    8280        int decimals = (int) Math.pow(10, (zoom / 3));
Note: See TracChangeset for help on using the changeset viewer.