Changeset 160


Ignore:
Timestamp:
Oct 24, 2006, 7:00:54 PM (13 years ago)
Author:
David Sheldon
Message:

Fix problem with using the search when not at zoomlevel 1

File:
1 edited

Legend:

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

    r147 r160  
    8686
    8787      zoomLevel = zoomLevel - 1;
    88       prefix = prefixes[zoomLevel];
    8988      fixZoomButton();
    9089      refreshGrid();
     
    130129
    131130        zoomLevel = zoomLevel + 1;
    132   prefix = prefixes[zoomLevel];
    133131  fixZoomButton();
    134132
     
    145143
    146144        zoomLevel = zoomLevel - 1;
    147   prefix = prefixes[zoomLevel];
    148145       
    149146  fixZoomButton();
     
    152149
    153150function fixZoomButton() {
     151  prefix = prefixes[zoomLevel];
    154152  if(zoomLevel == 1) {
    155153    document.getElementById('zoomin_enabled').style.visibility = 'hidden';
     
    228226  offsetGridY = northing;
    229227  zoomLevel = zoom;
     228  fixZoomButton();
    230229  refreshGrid();
    231230}
Note: See TracChangeset for help on using the changeset viewer.