Changeset 11789 in josm for trunk


Ignore:
Timestamp:
2017-03-29T19:49:27+02:00 (8 years ago)
Author:
bastiK
Message:

WMTS: fix autozoom in WGS84

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/WMTSLayer.java

    r11167 r11789  
    7575            return getMaxZoomLvl();
    7676        }
    77         Scale snap = scaleList.getSnapScale(Main.map.mapView.getScale(), false);
     77        double displayScale = Main.map.mapView.getScale() * Main.getProjection().getMetersPerUnit(); // meter per pixel
     78        Scale snap = scaleList.getSnapScale(displayScale, false);
    7879        return Math.max(
    7980                getMinZoomLvl(),
Note: See TracChangeset for help on using the changeset viewer.