Changeset 16290 in osm for applications/editors/josm/plugins/remotecontrol
- Timestamp:
- 2009-07-03T12:34:14+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/remotecontrol
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/remotecontrol/build.xml
r14015 r16290 26 26 <attribute name="Plugin-Description" value="Let other applications send commands to JOSM."/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/RemoteControl"/> 28 <attribute name="Plugin-Mainversion" value="1 465"/>28 <attribute name="Plugin-Mainversion" value="1722"/> 29 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 30 </manifest> -
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.