OpenLayers OpenLayers

Ticket #1046: getExtentArgs.patch

File getExtentArgs.patch, 0.8 kB (added by euzuro, 1 year ago)

not sure whether this really merits a patch or not, but passing an unnecessary arg might confuse someone. keep it simple.

  • lib/OpenLayers/Layer/FixedZoomLevels.js

    old new  
    183183        if (this.resolutions != null) { 
    184184            return OpenLayers.Layer.prototype.getZoomForResolution.apply(this, arguments); 
    185185        } else { 
    186             var extent = OpenLayers.Layer.prototype.getExtent.apply(this,  
    187                                                                     [resolution]); 
    188                                                                      
     186            var extent = OpenLayers.Layer.prototype.getExtent.apply(this, []); 
    189187            return this.getZoomForExtent(extent); 
    190188        } 
    191189    },