Ignore:
Timestamp:
2009-09-13T13:12:14+02:00 (17 years ago)
Author:
stoecker
Message:

see #3016 - patch by xeen - fixes some zooming issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Mercator.java

    r2017 r2114  
    2424    public EastNorth latlon2eastNorth(LatLon p) {
    2525        return new EastNorth(
    26             p.lon()*Math.PI/180,
    27             Math.log(Math.tan(Math.PI/4+p.lat()*Math.PI/360)));
     26                p.lon()*Math.PI/180,
     27                Math.log(Math.tan(Math.PI/4+p.lat()*Math.PI/360)));
    2828    }
    2929
    3030    public LatLon eastNorth2latlon(EastNorth p) {
    3131        return new LatLon(
    32             Math.atan(Math.sinh(p.north()))*180/Math.PI,
    33             p.east()*180/Math.PI);
     32                Math.atan(Math.sinh(p.north()))*180/Math.PI,
     33                p.east()*180/Math.PI);
    3434    }
    3535
     
    4949    {
    5050        return new Bounds(
    51         new LatLon(-85.05112877980659, -180.0),
    52         new LatLon(85.05112877980659, 180.0));
     51                new LatLon(-85.05112877980659, -180.0),
     52                new LatLon(85.05112877980659, 180.0));
     53    }
     54
     55    public double getDefaultZoomInPPD() {
     56        // This will set the scale bar to about 100 km
     57        return 0.000158;
    5358    }
    5459}
Note: See TracChangeset for help on using the changeset viewer.