Ignore:
Timestamp:
2009-07-03T23:35:00+02:00 (15 years ago)
Author:
stoecker
Message:

fixes for JOSM 1725 - utilsplugin JumpToAction still missing

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

Legend:

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

    r14128 r16294  
    2525                <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" />
    2626                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     27                <attribute name="Plugin-MainVersion" value="1725"/>
    2728            </manifest>
    2829        </jar>
  • applications/editors/josm/plugins/grid/src/grid/GridLayer.java

    r13497 r16294  
    303303            lli = gridtoworld.transform(new LatLon(lat+latspacing,lon));
    304304            llj = gridtoworld.transform(new LatLon(lat,lon+lonspacing));
    305             Point p0=mv.getPoint(Main.proj.latlon2eastNorth(ll0));
    306             Point pi=mv.getPoint(Main.proj.latlon2eastNorth(lli));
    307             Point pj=mv.getPoint(Main.proj.latlon2eastNorth(llj));
     305            Point p0=mv.getPoint(ll0);
     306            Point pi=mv.getPoint(lli);
     307            Point pj=mv.getPoint(llj);
    308308
    309309            if(Math.round(lon/lonspacing)%lonmaj==0)
     
    335335
    336336    private void drawGridLine(Graphics g, final MapView mv, LatLon ll0, LatLon ll1){
    337         Point p0=mv.getPoint(Main.proj.latlon2eastNorth(ll0));
    338         Point p1=mv.getPoint(Main.proj.latlon2eastNorth(ll1));
     337        Point p0=mv.getPoint(ll0);
     338        Point p1=mv.getPoint(ll1);
    339339
    340340        if(Math.abs(ll0.lon()-ll1.lon())<180){
     
    347347            if(lon1<0) lon1+=360;
    348348            latm = ll0.lat() + (180-lon0)*(ll1.lat()-ll0.lat())/(lon1-lon0);
    349             Point pm1 = mv.getPoint(Main.proj.latlon2eastNorth(new LatLon(latm,180)));
    350             Point pm2 = mv.getPoint(Main.proj.latlon2eastNorth(new LatLon(latm,-180)));
     349            Point pm1 = mv.getPoint(new LatLon(latm,180));
     350            Point pm2 = mv.getPoint(new LatLon(latm,-180));
    351351            if(lon0<=180){
    352352                g.drawLine(p0.x,p0.y,pm1.x,pm1.y);
Note: See TracChangeset for help on using the changeset viewer.