- Timestamp:
- 2009-01-17T11:41:53+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapScaler.java
r1237 r1274 29 29 LatLon ll2 = mv.getLatLon(100,0); 30 30 double dist = ll1.greatCircleDistance(ll2); 31 String text = dist > 1000 ? Math.round(dist/100)/10 +" km" : (dist >= 131 String text = dist >= 2000 ? Math.round(dist/100)/10 +" km" : (dist >= 1 32 32 ? Math.round(dist*10)/10 +" m" : "< 1 m"); 33 33 Rectangle2D bound = g.getFontMetrics().getStringBounds(text, g);
Note:
See TracChangeset
for help on using the changeset viewer.