Changeset 35216 in osm for applications/editors/josm/plugins
- Timestamp:
- 2019-11-02T15:39:26+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/measurement
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/build.xml
r34529 r35216 4 4 <property name="commit.message" value="recompile dure to core change"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 4153"/>6 <property name="plugin.main.version" value="15496"/> 7 7 <property name="plugin.canloadatruntime" value="true"/> 8 8 -
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java
r34529 r35216 30 30 import org.openstreetmap.josm.data.coor.LatLon; 31 31 import org.openstreetmap.josm.data.gpx.GpxTrack; 32 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;32 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 33 33 import org.openstreetmap.josm.data.gpx.WayPoint; 34 34 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; … … 286 286 287 287 for (GpxTrack trk : gpx.data.tracks) { 288 for ( GpxTrackSegment trkseg : trk.getSegments()) {288 for (IGpxTrackSegment trkseg : trk.getSegments()) { 289 289 for(WayPoint p: trkseg.getWayPoints()){ 290 290 points.add(p); -
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementMode.java
r34529 r35216 10 10 11 11 import org.openstreetmap.josm.actions.mapmode.MapMode; 12 import org.openstreetmap.josm.data. coor.LatLon;12 import org.openstreetmap.josm.data.osm.Node; 13 13 import org.openstreetmap.josm.gui.MainApplication; 14 14 … … 43 43 @Override 44 44 public void mouseClicked(MouseEvent e) { 45 if (e.getButton() == MouseEvent.BUTTON3) {45 if (e.getButton() == MouseEvent.BUTTON3) { 46 46 MeasurementPlugin.getCurrentLayer().removeLastPoint(); 47 } else if (e.getButton() == MouseEvent.BUTTON1) {48 LatLon coor = MainApplication.getMap().mapView.getLatLon(e.getX(), e.getY());47 } else if (e.getButton() == MouseEvent.BUTTON1) { 48 Node coor = new Node(MainApplication.getMap().mapView.getEastNorth(e.getX(), e.getY())); 49 49 if (coor.isOutSideWorld()) { 50 50 JOptionPane.showMessageDialog(MainApplication.getMainFrame(),tr("Can not draw outside of the world."));
Note:
See TracChangeset
for help on using the changeset viewer.