Ignore:
Timestamp:
2020-08-14T23:46:00+02:00 (4 years ago)
Author:
simon04
Message:

fix #3450 - SlippyMapBBoxChooser: confirm download bounds outside current map view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java

    r16623 r16893  
    359359        // Do nothing
    360360    }
     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    }
    361373}
Note: See TracChangeset for help on using the changeset viewer.