Changeset 2240
- Timestamp:
- 02/18/07 11:10:46 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer/KaMap.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/KaMap.js
r1721 r2240 51 51 getURL: function (bounds) { 52 52 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); 57 56 return this.getFullRequestString( 58 57 { t: pY,
