Getting rid of global tlViewPort in Grid.js (thanks jorix for the report).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11663 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -701,7 +701,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user