Changeset 8387 in josm for trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
- Timestamp:
- 2015-05-17T17:21:01+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r8384 r8387 306 306 307 307 this.bbox = bbox; 308 double minLon = bbox.getMinLon();309 double maxLon = bbox.getMaxLon();310 311 if (bbox.crosses180thMeridian()) {312 minLon -= 360.0;313 }314 315 308 iSelectionRectStart = new Coordinate(bbox.getMinLat(), bbox.getMinLon()); 316 309 iSelectionRectEnd = new Coordinate(bbox.getMaxLat(), bbox.getMaxLon()); 317 310 318 311 // calc the screen coordinates for the new selection rectangle 319 MapMarkerDot xmin_ymin = new MapMarkerDot(bbox.getMinLat(), bbox.getMinLon());320 MapMarkerDot xmax_ymax = new MapMarkerDot(bbox.getMaxLat(), bbox.getMaxLon());312 MapMarkerDot min = new MapMarkerDot(bbox.getMinLat(), bbox.getMinLon()); 313 MapMarkerDot max = new MapMarkerDot(bbox.getMaxLat(), bbox.getMaxLon()); 321 314 322 315 List<MapMarker> marker = new ArrayList<>(2); 323 marker.add( xmin_ymin);324 marker.add( xmax_ymax);316 marker.add(min); 317 marker.add(max); 325 318 setMapMarkerList(marker); 326 319 setDisplayToFitMapMarkers();
Note:
See TracChangeset
for help on using the changeset viewer.