diff --git a/lib/OpenLayers/Layer/KaMap.js b/lib/OpenLayers/Layer/KaMap.js index 212621f86b..786d581f41 100644 --- a/lib/OpenLayers/Layer/KaMap.js +++ b/lib/OpenLayers/Layer/KaMap.js @@ -49,7 +49,7 @@ OpenLayers.Layer.KaMap.prototype = */ getURL: function (bounds) { var mapRes = this.map.getResolution(); - var scale = this.map.getScale(); + var scale = Math.round((this.map.getScale() * 10000) / 10000); var cellSize = new OpenLayers.Size(mapRes*this.tileSize.w, mapRes*this.tileSize.h); var pX = Math.round(((bounds.left) / cellSize.w) * this.tileSize.w); var pY = -Math.round(((bounds.top) / cellSize.h) * this.tileSize.h);