[ol.layer.TileLayer] fix maxResolution calculation

This commit is contained in:
Éric Lemoine
2012-06-22 15:43:00 +02:00
parent 1df7c048b8
commit e5c3dcfe09

View File

@@ -211,7 +211,7 @@ ol.layer.TileLayer.prototype.getMaxResolution = function() {
if (!goog.isNull(extent)) {
this.maxResolution_ = Math.max(
(extent.getMaxX() - extent.getMinX()) / this.tileWidth_,
(extent.getMaxY() - extent.getMaxX()) / this.tileHeight_);
(extent.getMaxY() - extent.getMinY()) / this.tileHeight_);
}
}
return this.maxResolution_;