Changeset 547 for trunk


Ignore:
Timestamp:
May 7, 2007, 6:08:23 PM (13 years ago)
Author:
Nick Burch
Message:

Pick the right directory to display images from based on grid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/tiles/mapTiles.js

    r546 r547  
    365365function tileURL(tileX, tileY) {
    366366          //var root = (tileX % 2) == 0 ? root1 : root2;
    367                 return root + prefixes[zoomLevel]+trimNumber(tileX)+'/'+ trimNumber(tileY) + '.jpg';
     367                return root + grid + '/' + prefixes[zoomLevel] + trimNumber(tileX)+'/'+ trimNumber(tileY) + '.jpg';
    368368}
    369369
Note: See TracChangeset for help on using the changeset viewer.