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:
@@ -183,9 +183,7 @@ OpenLayers.Layer.FixedZoomLevels = OpenLayers.Class({
|
|||||||
if (this.resolutions != null) {
|
if (this.resolutions != null) {
|
||||||
return OpenLayers.Layer.prototype.getZoomForResolution.apply(this, arguments);
|
return OpenLayers.Layer.prototype.getZoomForResolution.apply(this, arguments);
|
||||||
} else {
|
} else {
|
||||||
var extent = OpenLayers.Layer.prototype.getExtent.apply(this,
|
var extent = OpenLayers.Layer.prototype.getExtent.apply(this, []);
|
||||||
[resolution]);
|
|
||||||
|
|
||||||
return this.getZoomForExtent(extent);
|
return this.getZoomForExtent(extent);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user