Remove extra math in ka-Map getURL calculation. This is historical cruft. Since
this change does not affect the input or output of the function it is changing, no test is neccesary. Patch from tschaub in #481. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -50,10 +50,9 @@ OpenLayers.Layer.KaMap.prototype =
|
|||||||
*/
|
*/
|
||||||
getURL: function (bounds) {
|
getURL: function (bounds) {
|
||||||
var mapRes = this.map.getResolution();
|
var mapRes = this.map.getResolution();
|
||||||
var scale = Math.round((this.map.getScale() * 10000)) / 10000;
|
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 / mapRes);
|
||||||
var pX = Math.round(((bounds.left) / cellSize.w) * this.tileSize.w);
|
var pY = -Math.round(bounds.top / mapRes);
|
||||||
var pY = -Math.round(((bounds.top) / cellSize.h) * this.tileSize.h);
|
|
||||||
return this.getFullRequestString(
|
return this.getFullRequestString(
|
||||||
{ t: pY,
|
{ t: pY,
|
||||||
l: pX,
|
l: pX,
|
||||||
|
|||||||
Reference in New Issue
Block a user