From 9adbf431ca50341dc38ec637180247db00c49696 Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Mon, 7 Jan 2013 13:25:15 +0100 Subject: [PATCH] clear the grid when we change from singleTile mode true to false or vice versa, discussed change with @ahocevar see #821 for the details --- lib/OpenLayers/Layer/Grid.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index ef8b41468f..9356a7c222 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -419,6 +419,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { OpenLayers.Layer.HTTPRequest.prototype.addOptions.apply(this, arguments); if (this.map && singleTileChanged) { this.initProperties(); + this.clearGrid(); this.tileSize = this.options.tileSize; this.setTileSize(); this.moveTo(null, true);