OpenLayers OpenLayers

Changeset 1304

Show
Ignore:
Timestamp:
08/18/06 22:53:50 (2 years ago)
Author:
euzuro
Message:

fix for #180 -- check zoomlevel bounds before calling setCenter()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.0/lib/OpenLayers/Map.js

    r1302 r1304  
    807807     */ 
    808808    zoomTo: function(zoom) { 
    809         this.setCenter(null, zoom); 
     809        if (this.isValidZoomLevel(zoom)) { 
     810            this.setCenter(null, zoom); 
     811        } 
    810812    }, 
    811813