OpenLayers OpenLayers

Changeset 2240

Show
Ignore:
Timestamp:
02/18/07 11:10:46 (2 years ago)
Author:
crschmidt
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/KaMap.js

    r1721 r2240  
    5151    getURL: function (bounds) { 
    5252        var mapRes = this.map.getResolution(); 
    53         var scale = Math.round((this.map.getScale() * 10000)) / 10000;         
    54         var cellSize = new OpenLayers.Size(mapRes*this.tileSize.w, mapRes*this.tileSize.h); 
    55         var pX = Math.round(((bounds.left) / cellSize.w) * this.tileSize.w); 
    56         var pY = -Math.round(((bounds.top) / cellSize.h) * this.tileSize.h); 
     53        var scale = Math.round((this.map.getScale() * 10000)) / 10000; 
     54        var pX = Math.round(bounds.left / mapRes); 
     55        var pY = -Math.round(bounds.top / mapRes); 
    5756        return this.getFullRequestString( 
    5857                      { t: pY,