From 7f5ea40aca22e579493e7c5b723f8e0570ae7503 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 6 Jul 2006 11:59:39 +0000 Subject: [PATCH] change function to use bl / tr git-svn-id: http://svn.openlayers.org/trunk/openlayers@897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index f72251a933..2221362be9 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -132,16 +132,16 @@ OpenLayers.Layer.Grid.prototype = */ getGridBounds:function() { - var topLeftTile = this.grid[0][0]; - var bottom = this.grid.length - 1; - var right = this.grid[0].length - 1; - var bottomRightTile = this.grid[bottom][right]; + var bottomLeftTile = this.grid[bottom][0]; - return new OpenLayers.Bounds(topLeftTile.bounds.left, - bottomRightTile.bounds.bottom, - bottomRightTile.bounds.right, - topLeftTile.bounds.top); + var right = this.grid[0].length - 1; + var topRightTile = this.grid[0][right]; + + return new OpenLayers.Bounds(bottomLeftTile.bounds.left, + bottomLeftTile.bounds.bottom, + topRightTile.bounds.right, + topRightTile.bounds.top); }, /**