Changeset 9897 in josm for trunk


Ignore:
Timestamp:
2016-02-28T13:32:49+01:00 (9 years ago)
Author:
wiktorn
Message:

Use maximum/minimum supported zoom levels for native scale calculations.

Use maximum/minimum supported zoom levels for native scale calculations instead
of layer defined. Closes: #12568

File:
1 edited

Legend:

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

    r9860 r9897  
    5757        super(info);
    5858        Collection<Double> scales = new ArrayList<>(info.getMaxZoom());
    59         for (int zoom = info.getMinZoom(); zoom <= info.getMaxZoom(); zoom++) {
     59        for (int zoom = AbstractTileSourceLayer.MIN_ZOOM; zoom <= AbstractTileSourceLayer.MAX_ZOOM; zoom++) {
    6060            double scale = OsmMercator.EARTH_RADIUS * Math.PI * 2 / Math.pow(2, zoom) / OsmMercator.DEFAUL_TILE_SIZE;
    6161            scales.add(scale);
Note: See TracChangeset for help on using the changeset viewer.