Fix missed change in KaMap. Tests now all pass.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1264 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-08-16 23:00:47 +00:00
parent e955fcc6da
commit c932a87d3f

View File

@@ -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);