Changeset 16294 in osm for applications/editors/josm/plugins/grid
- Timestamp:
- 2009-07-03T23:35:00+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/grid
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/grid/build.xml
r14128 r16294 25 25 <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" /> 26 26 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 27 <attribute name="Plugin-MainVersion" value="1725"/> 27 28 </manifest> 28 29 </jar> -
applications/editors/josm/plugins/grid/src/grid/GridLayer.java
r13497 r16294 303 303 lli = gridtoworld.transform(new LatLon(lat+latspacing,lon)); 304 304 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); 308 308 309 309 if(Math.round(lon/lonspacing)%lonmaj==0) … … 335 335 336 336 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); 339 339 340 340 if(Math.abs(ll0.lon()-ll1.lon())<180){ … … 347 347 if(lon1<0) lon1+=360; 348 348 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)); 351 351 if(lon0<=180){ 352 352 g.drawLine(p0.x,p0.y,pm1.x,pm1.y);
Note:
See TracChangeset
for help on using the changeset viewer.