- Timestamp:
- 2009-07-04T14:04:08+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r1722 r1728 69 69 for (Node n : this.objects) { 70 70 OldState os = new OldState(); 71 os.latlon = n .getCoor();71 os.latlon = new LatLon(n.getCoor()); 72 72 os.modified = n.modified; 73 73 oldState.add(os); -
trunk/src/org/openstreetmap/josm/command/RotateCommand.java
r1722 r1728 75 75 for (Node n : this.objects) { 76 76 OldState os = new OldState(); 77 os.latlon = n .getCoor();77 os.latlon = new LatLon(n.getCoor()); 78 78 os.eastNorth = n.getEastNorth(); 79 79 os.modified = n.modified; -
trunk/src/org/openstreetmap/josm/data/coor/CachedLatLon.java
r1724 r1728 25 25 public final void setEastNorth(EastNorth eastNorth) { 26 26 proj = Main.proj; 27 eastNorth = eastNorth;27 this.eastNorth = eastNorth; 28 28 LatLon l = proj.eastNorth2latlon(eastNorth); 29 setLocation(l.l at(), l.lon());29 setLocation(l.lon(), l.lat()); 30 30 } 31 31 -
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r1724 r1728 47 47 public LatLon(double lat, double lon) { 48 48 super(lon, lat); 49 } 50 51 public LatLon(LatLon coor) { 52 super(coor.lon(), coor.lat()); 49 53 } 50 54 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r1725 r1728 85 85 return (circum < 1500); 86 86 87 /* formula to calculate a map scale: natural size / map size = scale 88 example: 876000mm (876m as displayed) / 22mm (roughly estimated screen size of legend bar) = 39818 89 90 so the exact "correcting value" below depends only on the screen size and resolution 91 XXX - do we need a Preference setting for this (if things vary widely)? */ 92 return !(circum >= e.maxScale / 22 || circum < e.minScale / 22); 87 return !(circum >= e.maxScale || circum < e.minScale); 93 88 } 94 89 … … 1274 1269 useRealWidth = Main.pref.getBoolean("mappaint.useRealWidth",false); 1275 1270 zoomLevelDisplay = Main.pref.getBoolean("mappaint.zoomLevelDisplay",false); 1276 circum = Main.map.mapView.get MapScale();1271 circum = Main.map.mapView.getDist100Pixel(); 1277 1272 styles = MapPaintStyles.getStyles().getStyleSet(); 1278 1273 drawMultipolygon = Main.pref.getBoolean("mappaint.multipolygon",true); -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r1725 r1728 70 70 id.update(x.getBytes()); 71 71 return new Long(id.getValue()).intValue(); 72 }73 74 public double getMapScale() {75 /* TODO: we assume a pixel is 0.025mm */76 return getDist100Pixel()/(0.00025*100);77 72 } 78 73
Note:
See TracChangeset
for help on using the changeset viewer.