Fix getZoomForResolution() on FixedZoomLevels, which is passed an extra

(unused) argument. (Closes #1046)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-12-15 16:32:33 +00:00
parent 45c420782c
commit f746ed4211

View File

@@ -183,9 +183,7 @@ OpenLayers.Layer.FixedZoomLevels = OpenLayers.Class({
if (this.resolutions != null) {
return OpenLayers.Layer.prototype.getZoomForResolution.apply(this, arguments);
} else {
var extent = OpenLayers.Layer.prototype.getExtent.apply(this,
[resolution]);
var extent = OpenLayers.Layer.prototype.getExtent.apply(this, []);
return this.getZoomForExtent(extent);
}
},