use new clearGrid()

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-09 06:15:32 +00:00
parent 3b929fd7a2
commit 960a70ec07

View File

@@ -139,7 +139,7 @@ OpenLayers.Layer.Grid.prototype =
if (bounds != null) {
if (!this.getVisibility()) {
if (zoomChanged) {
// HACK HACK HACK -- should be this.hideGrid() basically
this.clearGrid();
}
} else if (!this.grid.length || zoomChanged
|| !this.getGridBounds().containsBounds(bounds, true)) {