Merge pull request #460 from elemoine/460
Fixing issue of calculating maxResolution of layer again
This commit is contained in:
@@ -1010,7 +1010,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
this.maxExtent != null) {
|
this.maxExtent != null) {
|
||||||
// maxResolution for default grid sets assumes that at zoom
|
// maxResolution for default grid sets assumes that at zoom
|
||||||
// level zero, the whole world fits on one tile.
|
// level zero, the whole world fits on one tile.
|
||||||
var tileSize = this.tileSize || this.map.getTileSize();
|
var tileSize = this.map.getTileSize();
|
||||||
maxResolution = Math.max(
|
maxResolution = Math.max(
|
||||||
this.maxExtent.getWidth() / tileSize.w,
|
this.maxExtent.getWidth() / tileSize.w,
|
||||||
this.maxExtent.getHeight() / tileSize.h
|
this.maxExtent.getHeight() / tileSize.h
|
||||||
|
|||||||
Reference in New Issue
Block a user