diff --git a/lib/OpenLayers/Layer/KaMap.js b/lib/OpenLayers/Layer/KaMap.js index 36aa7a154c..212621f86b 100644 --- a/lib/OpenLayers/Layer/KaMap.js +++ b/lib/OpenLayers/Layer/KaMap.js @@ -48,7 +48,7 @@ OpenLayers.Layer.KaMap.prototype = * @type String */ getURL: function (bounds) { - var zoom = this.map.getZoom(); + var mapRes = this.map.getResolution(); var scale = this.map.getScale(); var cellSize = new OpenLayers.Size(mapRes*this.tileSize.w, mapRes*this.tileSize.h); var pX = Math.round(((bounds.left) / cellSize.w) * this.tileSize.w);