Changeset 23561 in osm for applications/editors/josm/plugins/routing/src
- Timestamp:
- 2010-10-11T22:03:42+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java
r22549 r23561 131 131 public final Node getNearestHighwayNode(Point p) { 132 132 Node nearest = null; 133 int snapDistance = NavigatableComponent.PROP_SNAP_DISTANCE.get(); 133 134 double minDist = 0; 134 135 for (Way w : dataLayer.data.getWays()) { … … 139 140 Point P = Main.map.mapView.getPoint(n); 140 141 double dist = p.distanceSq(P); 141 if (dist < NavigatableComponent.snapDistance) {142 if (dist < snapDistance) { 142 143 if ((nearest == null) || (dist < minDist)) { 143 144 nearest = n; -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingPreferenceDialog.java
r19300 r23561 28 28 29 29 package com.innovant.josm.plugin.routing.gui; 30 31 import static org.openstreetmap.josm.tools.I18n.tr; 30 32 31 33 import java.awt.ComponentOrientation; … … 51 53 import javax.swing.table.DefaultTableModel; 52 54 53 import static org.openstreetmap.josm.tools.I18n.tr;54 55 55 import org.apache.log4j.Logger; 56 56 import org.openstreetmap.josm.Main; 57 import org.openstreetmap.josm.gui.preferences.PreferenceDialog;58 57 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 59 58 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane; … … 61 60 62 61 import com.innovant.josm.jrt.osm.OsmWayTypes; 63 import com.innovant.josm.plugin.routing.RoutingPlugin;64 62 65 63 public class RoutingPreferenceDialog implements PreferenceSetting {
Note:
See TracChangeset
for help on using the changeset viewer.