diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 92a41695d3..e718bde549 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -65,7 +65,14 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), { bottomRightTile.bounds.right, topLeftTile.bounds.top); }, + + /** + */ _initTiles:function() { + + //first of all, clear out the main div + this.div.innerHTML = ""; + var viewSize = this.map.getSize(); var bounds = this.map.getExtent(); var extent = this.map.getFullExtent(); diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 7fcf288365..5683e53a53 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -60,13 +60,6 @@ OpenLayers.Layer.WFS.prototype = return tile; }, - /** clear out the layer's main div - */ - _initTiles: function() { - this.div.innerHTML = ""; - OpenLayers.Layer.Grid.prototype._initTiles.apply(this, arguments); - }, - /** @final @type String */ CLASS_NAME: "OpenLayers.Layer.WFS" }); diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index 1498993794..f3582eca8f 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -65,13 +65,6 @@ OpenLayers.Layer.WMS.prototype = return tile; }, - /** clear out the layer's main div - */ - _initTiles: function () { - this.div.innerHTML=""; - OpenLayers.Layer.Grid.prototype._initTiles.apply(this, arguments); - }, - /** @final @type String */ CLASS_NAME: "OpenLayers.Layer.WMS" });