Changeset 35216 in osm for applications/editors/josm


Ignore:
Timestamp:
2019-11-02T15:39:26+01:00 (5 years ago)
Author:
donvip
Message:

update to JOSM 15496

Location:
applications/editors/josm/plugins/measurement
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/build.xml

    r34529 r35216  
    44    <property name="commit.message" value="recompile dure to core change"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="14153"/>
     6    <property name="plugin.main.version" value="15496"/>
    77    <property name="plugin.canloadatruntime" value="true"/>
    88   
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java

    r34529 r35216  
    3030import org.openstreetmap.josm.data.coor.LatLon;
    3131import org.openstreetmap.josm.data.gpx.GpxTrack;
    32 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     32import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    3333import org.openstreetmap.josm.data.gpx.WayPoint;
    3434import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
     
    286286
    287287                for (GpxTrack trk : gpx.data.tracks) {
    288                     for (GpxTrackSegment trkseg : trk.getSegments()) {
     288                    for (IGpxTrackSegment trkseg : trk.getSegments()) {
    289289                        for(WayPoint p: trkseg.getWayPoints()){
    290290                            points.add(p);
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementMode.java

    r34529 r35216  
    1010
    1111import org.openstreetmap.josm.actions.mapmode.MapMode;
    12 import org.openstreetmap.josm.data.coor.LatLon;
     12import org.openstreetmap.josm.data.osm.Node;
    1313import org.openstreetmap.josm.gui.MainApplication;
    1414
     
    4343    @Override
    4444    public void mouseClicked(MouseEvent e) {
    45         if (e.getButton() == MouseEvent.BUTTON3){
     45        if (e.getButton() == MouseEvent.BUTTON3) {
    4646            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()));
    4949            if (coor.isOutSideWorld()) {
    5050                JOptionPane.showMessageDialog(MainApplication.getMainFrame(),tr("Can not draw outside of the world."));
Note: See TracChangeset for help on using the changeset viewer.