Changeset 16893 in josm for trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
- Timestamp:
- 2020-08-14T23:46:00+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r16623 r16893 359 359 // Do nothing 360 360 } 361 362 /** 363 * Returns the currently visible map area 364 * @return the currently visible map area 365 */ 366 public Bounds getVisibleMapArea() { 367 final ICoordinate topLeft = getPosition(0, 0); 368 final ICoordinate bottomRight = getPosition(getWidth(), getHeight()); 369 final Bounds bounds = new Bounds(topLeft.getLat(), topLeft.getLon(), false); 370 bounds.extend(bottomRight.getLat(), bottomRight.getLon()); 371 return bounds; 372 } 361 373 }
Note:
See TracChangeset
for help on using the changeset viewer.