Changeset 32769 in osm for applications/viewer


Ignore:
Timestamp:
2016-08-04T13:48:47+02:00 (8 years ago)
Author:
glebius
Message:

Explicitly set tileSize and explain why.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java

    r32761 r32769  
    6161        super(info);
    6262        String url = info.getUrl();
     63
     64        /**
     65         * The formulae in tileYToLat() and latToTileY() have 2^8
     66         * hardcoded in them, so explicitly state that.  For now
     67         * the assignment matches OsmMercator.DEFAUL_TILE_SIZE, and
     68         * thus is extraneous.  But let it be there just in case if
     69         * OsmMercator changes.
     70         */
     71        this.tileSize = 256;
    6372
    6473        for (ScanexLayer slayer : ScanexLayer.values()) {
Note: See TracChangeset for help on using the changeset viewer.