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:
@@ -419,6 +419,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
OpenLayers.Layer.HTTPRequest.prototype.addOptions.apply(this, arguments);
|
OpenLayers.Layer.HTTPRequest.prototype.addOptions.apply(this, arguments);
|
||||||
if (this.map && singleTileChanged) {
|
if (this.map && singleTileChanged) {
|
||||||
this.initProperties();
|
this.initProperties();
|
||||||
|
this.clearGrid();
|
||||||
this.tileSize = this.options.tileSize;
|
this.tileSize = this.options.tileSize;
|
||||||
this.setTileSize();
|
this.setTileSize();
|
||||||
this.moveTo(null, true);
|
this.moveTo(null, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user