Changeset 170


Ignore:
Timestamp:
Oct 24, 2006, 8:14:48 PM (13 years ago)
Author:
Matthew Westcott
Message:

specify that marker position is in pixels, so that Firefox doesn't throw a wobbly

File:
1 edited

Legend:

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

    r160 r170  
    349349
    350350function setMarkerXY(marker, x, y) {
    351   marker.style.left = Math.round(markerLeft + x) ;
    352   marker.style.top = Math.round(markerTop - y);
     351  marker.style.left = Math.round(markerLeft + x) + 'px' ;
     352  marker.style.top = Math.round(markerTop - y) + 'px';
    353353 
    354354}
Note: See TracChangeset for help on using the changeset viewer.