Changeset 12182 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
- Timestamp:
- 2017-05-15T19:29:29+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r12158 r12182 74 74 public class DrawAction extends MapMode implements MapViewPaintable, SelectionChangedListener, KeyPressReleaseListener, ModifierListener { 75 75 76 /** 77 * If this property is set, the draw action moves the viewport when adding new points. 78 * @since 12182 79 */ 80 public static final CachingProperty<Boolean> VIEWPORT_FOLLOWING = new BooleanProperty("draw.viewport.following", false).cached(); 81 76 82 private static final Color ORANGE_TRANSPARENT = new Color(Color.ORANGE.getRed(), Color.ORANGE.getGreen(), Color.ORANGE.getBlue(), 128); 77 83 … … 614 620 // "viewport following" mode for tracing long features 615 621 // from aerial imagery or GPS tracks. 616 if ( Main.map.mapView.viewportFollowing) {622 if (VIEWPORT_FOLLOWING.get()) { 617 623 Main.map.mapView.smoothScrollTo(n.getEastNorth()); 618 624 }
Note:
See TracChangeset
for help on using the changeset viewer.