Ignore:
Timestamp:
2009-07-03T12:34:14+02:00 (15 years ago)
Author:
stoecker
Message:

adapted plugins to JOSm 1722, UtilsPlugin still has a problem

Location:
applications/editors/josm/plugins/surveyor
Files:
2 edited

Legend:

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

    r14015 r16290  
    3737                <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/>
    3838                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/>
    39                 <attribute name="Plugin-Mainversion" value="1326"/>
     39                <attribute name="Plugin-Mainversion" value="1722"/>
    4040                <attribute name="Plugin-Requires" value="livegps"/>
    4141                <attribute name="Plugin-Stage" value="60"/>
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java

    r13497 r16290  
    8181                public void actionPerformed(ActionEvent e) {
    8282                    if(Main.map != null && Main.map.mapView != null) {
    83                         Main.map.mapView.zoomTo(Main.map.mapView.getCenter(), Main.map.mapView.getScale()*2);
     83                        Main.map.mapView.zoomToFactor(2);
    8484                    }
    8585                }
     
    9090                public void actionPerformed(ActionEvent e) {
    9191                    if(Main.map != null && Main.map.mapView != null) {
    92                         Main.map.mapView.zoomTo(Main.map.mapView.getCenter(), Main.map.mapView.getScale()/2);
     92                        Main.map.mapView.zoomToFactor(1/2);
    9393                    }
    9494                }
Note: See TracChangeset for help on using the changeset viewer.