From b7d58fe9fe9181dd1aa27c76fe45669da8cccab7 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 18 May 2006 18:58:36 +0000 Subject: [PATCH] bubble up common functionality git-svn-id: http://svn.openlayers.org/trunk/openlayers@165 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 7 +++++++ lib/OpenLayers/Layer/WFS.js | 7 ------- lib/OpenLayers/Layer/WMS.js | 7 ------- 3 files changed, 7 insertions(+), 14 deletions(-) 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" });