[OpenLayers-Commits] r11663 - trunk/openlayers/lib/OpenLayers/Layer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Mar 8 01:54:49 EST 2011
Author: tschaub
Date: 2011-03-07 22:54:48 -0800 (Mon, 07 Mar 2011)
New Revision: 11663
Modified:
trunk/openlayers/lib/OpenLayers/Layer/Grid.js
Log:
Getting rid of global tlViewPort in Grid.js (thanks jorix for the report).
Modified: trunk/openlayers/lib/OpenLayers/Layer/Grid.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Grid.js 2011-03-08 06:13:46 UTC (rev 11662)
+++ trunk/openlayers/lib/OpenLayers/Layer/Grid.js 2011-03-08 06:54:48 UTC (rev 11663)
@@ -701,7 +701,7 @@
var tlLayer = this.grid[0][0].position;
var offsetX = parseInt(this.map.layerContainerDiv.style.left);
var offsetY = parseInt(this.map.layerContainerDiv.style.top);
- tlViewPort = tlLayer.add(offsetX, offsetY);
+ var tlViewPort = tlLayer.add(offsetX, offsetY);
if (tlViewPort.x > -this.tileSize.w * (buffer - 1)) {
this.shiftColumn(true);
} else if (tlViewPort.x < -this.tileSize.w * buffer) {
More information about the Commits
mailing list