Changeset 33456 in osm for applications/editors
- Timestamp:
- 2017-07-18T13:39:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/EdgeSelectionAction.java
r33455 r33456 14 14 15 15 import org.openstreetmap.josm.Main; 16 import org.openstreetmap.josm.actions.AutoScaleAction; 16 17 import org.openstreetmap.josm.actions.mapmode.MapMode; 17 18 import org.openstreetmap.josm.data.osm.DataSet; … … 139 140 Way initial = Main.map.mapView.getNearestWay(e.getPoint(), OsmPrimitive::isUsable); 140 141 if (initial != null) { 141 ds.setSelected(getEdgeFromWay(initial, getModeOfTravel())); 142 List<Way> edge = getEdgeFromWay(initial, getModeOfTravel()); 143 ds.setSelected(edge); 144 AutoScaleAction.zoomTo( 145 edge.stream() 146 .map(w -> (OsmPrimitive) w) 147 .collect(Collectors.toList())); 142 148 } else 143 149 ds.clearSelection();
Note:
See TracChangeset
for help on using the changeset viewer.