clear the grid when we change from singleTile mode true to false or vice versa, discussed change with @ahocevar see #821 for the details

This commit is contained in:
Bart van den Eijnden
2013-01-07 13:25:15 +01:00
parent 1eeda5d9f7
commit 9adbf431ca

View File

@@ -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);