diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index b9eaab1937..80981a1b1a 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -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)) {