Ignore:
Timestamp:
2011-10-28T01:41:06+02:00 (13 years ago)
Author:
donvip
Message:

fix #josm7014 - Apparent error computing tms tile URLs

File:
1 edited

Legend:

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

    r26950 r26973  
    7575            .replaceAll(PATTERN_X, Integer.toString(tilex))
    7676            .replaceAll(PATTERN_Y, Integer.toString(tiley))
    77             .replaceAll(PATTERN_Y_YAHOO, Integer.toString((int)Math.pow(2, zoom-1)-1-tiley));
     77            .replaceAll(PATTERN_Y_YAHOO, Integer.toString((int)Math.pow(2, zoom)-1-tiley));
    7878        if (rand != null) {
    7979            r = r.replaceAll(PATTERN_SWITCH, randomParts[rand.nextInt(randomParts.length)]);
Note: See TracChangeset for help on using the changeset viewer.