From 0500b9cba2b6a4627e259685de0c65fd23587743 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 23 Aug 2006 20:59:37 +0000 Subject: [PATCH] KaMap used to round its tiles. This dropped out. This was bad, since it means any existing KaMap caches were not working correctly with 2.0-rc2. git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/KaMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);