OpenLayers OpenLayers

Changeset 5357

Show
Ignore:
Timestamp:
12/07/07 09:50:15 (1 year ago)
Author:
crschmidt
Message:

Fix missing units param in call to getResolutionFromScale . This should have
been fixed a while ago, but we were waiting on a test: Now that it's been
reported by four different users, I'm just going to go ahead and fix it,
grudgingly, rather than wait longer on a test. (Closes #958, #1117)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer.js

    r5002 r5357  
    648648            if (confProps.maxScale != null) {            
    649649                confProps.minResolution =  
    650                     OpenLayers.Util.getResolutionFromScale(confProps.maxScale); 
     650                    OpenLayers.Util.getResolutionFromScale(confProps.maxScale,  
     651                                                           confProps.units); 
    651652            } else if ( (confProps.minResolution == "auto") &&  
    652653                        (confProps.minExtent != null) ) {