[OpenLayers-Commits] r3613 - sandbox/euzuro/untiled3/lib/OpenLayers/Layer
commits at openlayers.org
commits at openlayers.org
Fri Jul 6 10:56:59 EDT 2007
Author: euzuro
Date: 2007-07-06 10:56:58 -0400 (Fri, 06 Jul 2007)
New Revision: 3613
Modified:
sandbox/euzuro/untiled3/lib/OpenLayers/Layer/Grid.js
Log:
spacing issues for prettier patch
Modified: sandbox/euzuro/untiled3/lib/OpenLayers/Layer/Grid.js
===================================================================
--- sandbox/euzuro/untiled3/lib/OpenLayers/Layer/Grid.js 2007-07-06 04:07:31 UTC (rev 3612)
+++ sandbox/euzuro/untiled3/lib/OpenLayers/Layer/Grid.js 2007-07-06 14:56:58 UTC (rev 3613)
@@ -316,24 +316,24 @@
var viewSize = this.map.getSize();
var minRows = Math.ceil(viewSize.h/this.tileSize.h) + 1;
var minCols = Math.ceil(viewSize.w/this.tileSize.w) + 1;
-
+
var extent = this.map.getMaxExtent();
var resolution = this.map.getResolution();
var tilelon = resolution * this.tileSize.w;
var tilelat = resolution * this.tileSize.h;
-
+
var offsetlon = bounds.left - extent.left;
var tilecol = Math.floor(offsetlon/tilelon) - this.buffer;
var tilecolremain = offsetlon/tilelon - tilecol;
var tileoffsetx = -tilecolremain * this.tileSize.w;
var tileoffsetlon = extent.left + tilecol * tilelon;
-
+
var offsetlat = bounds.top - (extent.bottom + tilelat);
var tilerow = Math.ceil(offsetlat/tilelat) + this.buffer;
var tilerowremain = tilerow - offsetlat/tilelat;
var tileoffsety = -tilerowremain * this.tileSize.h;
var tileoffsetlat = extent.bottom + tilerow * tilelat;
-
+
tileoffsetx = Math.round(tileoffsetx); // heaven help us
tileoffsety = Math.round(tileoffsety);
@@ -343,7 +343,7 @@
var startLon = tileoffsetlon;
var rowidx = 0;
-
+
do {
var row = this.grid[rowidx++];
if (!row) {
More information about the Commits
mailing list