Changeset 146


Ignore:
Timestamp:
Oct 23, 2006, 7:15:52 PM (13 years ago)
Author:
David Sheldon
Message:

forgot to round the numbers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/index.html

    r145 r146  
    115115
    116116function urlFor(easting, northing, zoom) {
    117   var x= easting / zooms[zoom];
    118   var y= northing/ zooms[zoom];
     117  var x= Math.round(easting / zooms[zoom]);
     118  var y= Math.round(northing/ zooms[zoom]);
    119119  return ROOTURL + "/tiles/map.html#" +  x + "," + y +","+zoom;
    120120}
Note: See TracChangeset for help on using the changeset viewer.