Changeset 3047 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-02-26T20:13:59+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r3010 r3047 147 147 dataSet.dataSources.add(new DataSource(currentBounds, "OpenStreetMap server")); 148 148 } 149 149 150 rememberDownloadedData(dataSet); 150 151 int numDataLayers = getNumDataLayers(); … … 154 155 // 155 156 OsmDataLayer layer = new OsmDataLayer(dataSet, OsmDataLayer.createNewName(), null); 157 final boolean isDisplayingMapView = Main.isDisplayingMapView(); 158 156 159 Main.main.addLayer(layer); 157 BoundingXYVisitor v = new BoundingXYVisitor(); 158 v.visit(currentBounds); 159 Main.map.mapView.recalculateCenterScale(v); 160 161 // If the mapView is not there yet, we cannot calculate the bounds (see constructor of MapView). 162 // Otherwise jump to the current download. 163 if (isDisplayingMapView) { 164 System.err.println("TRUE!"); 165 BoundingXYVisitor v = new BoundingXYVisitor(); 166 v.visit(currentBounds); 167 Main.map.mapView.recalculateCenterScale(v); 168 } 160 169 } else { 161 170 OsmDataLayer target;
Note:
See TracChangeset
for help on using the changeset viewer.