Changeset 4208 in josm for trunk/src


Ignore:
Timestamp:
2011-07-07T10:56:41+02:00 (13 years ago)
Author:
bastiK
Message:

change default value for min distance of gpx arrows

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r4207 r4208  
    409409        boolean alternatedirection = Main.pref.getBoolean("draw.rawgps.alternatedirection");
    410410        // don't draw arrows nearer to each other than this
    411         int delta = Main.pref.getInteger("draw.rawgps.min-arrow-distance", 0);
     411        int delta = Main.pref.getInteger("draw.rawgps.min-arrow-distance", 40);
    412412        // allows to tweak line coloring for different speed levels.
    413413        int colorTracksTune = Main.pref.getInteger("draw.rawgps.colorTracksTune", 45);
     
    467467
    468468                            case direction:
    469                                 // unfortunately "heading" misses a cos-factor in the
    470                                 // longitudes to account for the convergence of meridians
    471469                                double dirColor = oldWp.getCoor().heading(trkPnt.getCoor()) / (2.0 * Math.PI) * 256;
    472470                                // Bad case first
  • trunk/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java

    r4207 r4208  
    152152        // drawGpsArrowsMinDist
    153153        drawGpsArrowsMinDist.setToolTipText(tr("Do not draw arrows if they are not at least this distance away from the last one."));
    154         drawGpsArrowsMinDist.setText(Integer.toString(Main.pref.getInteger("draw.rawgps.min-arrow-distance", 0)));
     154        drawGpsArrowsMinDist.setText(Integer.toString(Main.pref.getInteger("draw.rawgps.min-arrow-distance", 40)));
    155155        drawGpsArrowsMinDist.setEnabled(drawGpsArrows.isSelected() && drawGpsArrows.isEnabled());
    156156        panel.add(new JLabel(tr("Minimum distance (pixels)")), GBC.std().insets(60,0,0,0));
Note: See TracChangeset for help on using the changeset viewer.