This broke more than it fixed. Putting it back, and filing a bug on this issue.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@465 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-30 05:52:13 +00:00
parent bd0881d56b
commit df375e7d29
+14 -13
View File
@@ -55,19 +55,20 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
} }
if (!this.grid || zoomChanged) { if (!this.grid || zoomChanged) {
this._initTiles(); this._initTiles();
} } else {
var i = 0; var i = 0;
while (this.getGridBounds().bottom > bounds.bottom) { while (this.getGridBounds().bottom > bounds.bottom) {
this.insertRow(false); this.insertRow(false);
} }
while (this.getGridBounds().left > bounds.left) { while (this.getGridBounds().left > bounds.left) {
this.insertColumn(true); this.insertColumn(true);
} }
while (this.getGridBounds().top < bounds.top) { while (this.getGridBounds().top < bounds.top) {
this.insertRow(true); this.insertRow(true);
} }
while (this.getGridBounds().right < bounds.right) { while (this.getGridBounds().right < bounds.right) {
this.insertColumn(false); this.insertColumn(false);
}
} }
}, },
getGridBounds:function() { getGridBounds:function() {