Also taking into account zoomOffset.

Now the meaning of getServerZoom is fully clarified, and we can get rid of some code again as well.
This commit is contained in:
ahocevar
2012-04-27 09:25:52 -04:00
committed by Tim Schaub
parent 40b4cc49e0
commit 72d1b54956
4 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ OpenLayers.Layer.XYZ = OpenLayers.Class(OpenLayers.Layer.Grid, {
(res * this.tileSize.w));
var y = Math.round((this.maxExtent.top - bounds.top) /
(res * this.tileSize.h));
var z = this.getServerZoom() + (this.zoomOffset || 0);
var z = this.getServerZoom();
if (this.wrapDateLine) {
var limit = Math.pow(2, z);