OpenLayers OpenLayers

Changeset 1342

Show
Ignore:
Timestamp:
08/23/06 17:04:14 (2 years ago)
Author:
crschmidt
Message:

And it helps if you do the order of operations right so that the figures
are not rounded to integers, really.

Files:

Legend:

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

    r1341 r1342  
    5050    getURL: function (bounds) { 
    5151        var mapRes = this.map.getResolution(); 
    52         var scale = Math.round((this.map.getScale() * 10000) / 10000);         
     52        var scale = Math.round((this.map.getScale() * 10000)) / 10000;         
    5353        var cellSize = new OpenLayers.Size(mapRes*this.tileSize.w, mapRes*this.tileSize.h); 
    5454        var pX = Math.round(((bounds.left) / cellSize.w) * this.tileSize.w);