Changeset 16290 in osm for applications/editors/josm/plugins/remotecontrol/src
- Timestamp:
- 2009-07-03T12:34:14+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java
r14893 r16290 18 18 import org.openstreetmap.josm.actions.AutoScaleAction; 19 19 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 20 import org.openstreetmap.josm.data.Bounds; 20 21 import org.openstreetmap.josm.data.coor.EastNorth; 21 22 import org.openstreetmap.josm.data.coor.LatLon; … … 194 195 } else if (Main.pref.getBoolean("remotecontrol.permission.change-viewport", true)) { 195 196 // after downloading, zoom to downloaded area. 196 final LatLon min = new LatLon(minlat, minlon);197 final LatLon max = new LatLon(maxlat, maxlon);197 final Bounds bounds = new Bounds(new LatLon(minlat, minlon), 198 new LatLon(maxlat, maxlon)); 198 199 199 200 Main.worker.execute(new Runnable() { 200 201 public void run() { 201 202 BoundingXYVisitor bbox = new BoundingXYVisitor(); 202 bbox.min = Main.proj.latlon2eastNorth(min); 203 bbox.max = Main.proj.latlon2eastNorth(max); 203 bbox.visit(bounds); 204 204 Main.map.mapView.recalculateCenterScale(bbox); 205 205 }
Note:
See TracChangeset
for help on using the changeset viewer.