Changeset 16294 in osm for applications/editors/josm/plugins/routing
- Timestamp:
- 2009-07-03T23:35:00+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/routing
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/build.xml
r16290 r16294 44 44 <attribute name="Plugin-Description" value="Provides routing capabilities."/> 45 45 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/> 46 <attribute name="Plugin-Mainversion" value="172 2"/>46 <attribute name="Plugin-Mainversion" value="1725"/> 47 47 <attribute name="Plugin-Stage" value="50"/> 48 48 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java
r16290 r16294 139 139 if (n.deleted || n.incomplete) continue; 140 140 141 Point P = Main.map.mapView.getPoint(n .getEastNorth());141 Point P = Main.map.mapView.getPoint(n); 142 142 double dist = p.distanceSq(P); 143 143 if (dist < NavigatableComponent.snapDistance) { … … 275 275 // paint start icon 276 276 Node node = nodes.get(0); 277 Point screen = mv.getPoint(node .getEastNorth());277 Point screen = mv.getPoint(node); 278 278 startIcon.paintIcon(mv, g, screen.x - startIcon.getIconWidth()/2, 279 279 screen.y - startIcon.getIconHeight()); … … 282 282 for(int index = 1; index < nodes.size() - 1; ++index) { 283 283 node = nodes.get(index); 284 screen = mv.getPoint(node .getEastNorth());284 screen = mv.getPoint(node); 285 285 middleIcon.paintIcon(mv, g, screen.x - startIcon.getIconWidth()/2, 286 286 screen.y - middleIcon.getIconHeight()); … … 289 289 if(nodes.size() > 1) { 290 290 node = nodes.get(nodes.size() - 1); 291 screen = mv.getPoint(node .getEastNorth());291 screen = mv.getPoint(node); 292 292 endIcon.paintIcon(mv, g, screen.x - startIcon.getIconWidth()/2, 293 293 screen.y - endIcon.getIconHeight()); -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/actions/MoveRouteNodeAction.java
r16290 r16294 113 113 for (int i=0;i<nl.size();i++) { 114 114 Node node = nl.get(i); 115 double d = Main.map.mapView.getPoint(node .getEastNorth()).distanceSq(e.getPoint());115 double d = Main.map.mapView.getPoint(node).distanceSq(e.getPoint()); 116 116 if (d < dmax) { 117 117 dmax = d; -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/actions/RemoveRouteNodeAction.java
r16290 r16294 102 102 for (int i=0;i<nl.size();i++) { 103 103 Node node = nl.get(i); 104 double d = Main.map.mapView.getPoint(node .getEastNorth()).distanceSq(e.getPoint());104 double d = Main.map.mapView.getPoint(node).distanceSq(e.getPoint()); 105 105 if (d < dmax) { 106 106 dmax = d;
Note:
See TracChangeset
for help on using the changeset viewer.