clear the grid if not visible

git-svn-id: http://svn.openlayers.org/trunk/openlayers@958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-17 13:09:39 +00:00
parent 7994088a7a
commit fa090a0826

View File

@@ -113,6 +113,8 @@ OpenLayers.Layer.Grid.prototype =
moveTo:function(bounds, zoomChanged, minor) {
if (!this.getVisibility()) {
if (zoomChanged) {
//now clear out the old grid and start a new one
this.clearGrid();
this.grid = null;
}
} else {