Changeset 8697 in josm for trunk/src/org


Ignore:
Timestamp:
2015-08-28T07:20:52+02:00 (5 years ago)
Author:
wiktorn
Message:

fix failing tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSource.java

    r8696 r8697  
    110110
    111111        for (int zoom = getMinZoom(); zoom <= getMaxZoom(); zoom++) {
     112            // use well known scale set "GoogleCompatibile" from OGC WMTS spec to calculate number of tiles per zoom level
     113            // this makes the zoom levels "glued" to standard TMS zoom levels
     114            degreesPerTile[zoom] = (SCALE_DENOMINATOR_ZOOM_LEVEL_1 / Math.pow(2, zoom - 1)) * crsScale;
    112115            TileXY maxTileIndex = latLonToTileXY(bottomRight.toCoordinate(), zoom);
    113116            tileXMax[zoom] = maxTileIndex.getXIndex();
    114117            tileYMax[zoom] = maxTileIndex.getYIndex();
    115             // use well known scale set "GoogleCompatibile" from OGC WMTS spec to calculate number of tiles per zoom level
    116             // this makes the zoom levels "glued" to standard TMS zoom levels
    117             degreesPerTile[zoom] = (SCALE_DENOMINATOR_ZOOM_LEVEL_1 / Math.pow(2, zoom - 1)) * crsScale;
    118         }
    119 
     118        }
    120119    }
    121120
Note: See TracChangeset for help on using the changeset viewer.