OpenLayers OpenLayers

Changeset 1341

Show
Ignore:
Timestamp:
08/23/06 16:59:37 (2 years ago)
Author:
crschmidt
Message:

KaMap used to round its tiles. This dropped out. This was bad, since it means
any existing KaMap caches were not working correctly with 2.0-rc2.

Files:

Legend:

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

    r1264 r1341  
    5050    getURL: function (bounds) { 
    5151        var mapRes = this.map.getResolution(); 
    52         var scale = this.map.getScale();         
     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);