rem: 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); 
add: var scale = Math.round((this.map.getScale() * 10000)) / 10000; var pX = Math.round(bounds.left / mapRes); var pY = -Math.round(bounds.top / mapRes); 
context:     getURL: function (bounds) {        var mapRes = this.map.getResolution();        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);        return this.getFullRequestString(                      { t: pY,                         l: pX,                        s: scale                      });    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/e61204a31ef44f8717966b8b81fcfdb65853bb0b/KaMap.js/clean/lib/OpenLayers/Layer/KaMap.js