Ignore:
Timestamp:
2011-02-01T01:49:32+01:00 (13 years ago)
Author:
framm
Message:

new viewport following function; moves the viewport so that the last placed
node is in the center. the idea is to greatly improve tracing of long, linear
features from imagery or tracks (no need to right-click and pan all the time),
however the execution still leaves to be desired; problem is that after you
have placed a node you have to wait for the movement to finish before you can
place the next node. possible enhancements: only scroll if placed node is on
the outer rim of viewport?

File:
1 edited

Legend:

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

    r3416 r3837  
    559559        getCurrentDataSet().setSelected(newSelection);
    560560
     561        // "viewport following" mode for tracing long features
     562        // from aerial imagery or GPS tracks.
     563        if (n != null && Main.map.mapView.viewportFollowing) {
     564            Main.map.mapView.smoothScrollTo(n.getEastNorth());
     565        };
    561566        computeHelperLine();
    562567        removeHighlighting();
Note: See TracChangeset for help on using the changeset viewer.