Changeset 410 in josm for trunk/src


Ignore:
Timestamp:
2007-10-22T09:12:05+02:00 (18 years ago)
Author:
gebner
Message:

When auto-scaling to a single node, show just 50m context instead of 1km.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r403 r410  
    6666                        // special case to zoom nicely to one single node
    6767                        if (v.min != null && v.max != null && v.min.north() == v.max.north() && v.min.east() == v.max.east()) {
    68                                 EastNorth en = Main.proj.latlon2eastNorth(new LatLon(0.02, 0.02));
     68                                EastNorth en = Main.proj.latlon2eastNorth(new LatLon(0.001, 0.001));
    6969                                v.min = new EastNorth(v.min.east()-en.east(), v.min.north()-en.north());
    7070                                v.max = new EastNorth(v.max.east()+en.east(), v.max.north()+en.north());
Note: See TracChangeset for help on using the changeset viewer.