bubble up common functionality
git-svn-id: http://svn.openlayers.org/trunk/openlayers@165 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -65,7 +65,14 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
|
|||||||
bottomRightTile.bounds.right,
|
bottomRightTile.bounds.right,
|
||||||
topLeftTile.bounds.top);
|
topLeftTile.bounds.top);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
_initTiles:function() {
|
_initTiles:function() {
|
||||||
|
|
||||||
|
//first of all, clear out the main div
|
||||||
|
this.div.innerHTML = "";
|
||||||
|
|
||||||
var viewSize = this.map.getSize();
|
var viewSize = this.map.getSize();
|
||||||
var bounds = this.map.getExtent();
|
var bounds = this.map.getExtent();
|
||||||
var extent = this.map.getFullExtent();
|
var extent = this.map.getFullExtent();
|
||||||
|
|||||||
@@ -60,13 +60,6 @@ OpenLayers.Layer.WFS.prototype =
|
|||||||
return tile;
|
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 */
|
/** @final @type String */
|
||||||
CLASS_NAME: "OpenLayers.Layer.WFS"
|
CLASS_NAME: "OpenLayers.Layer.WFS"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -65,13 +65,6 @@ OpenLayers.Layer.WMS.prototype =
|
|||||||
return tile;
|
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 */
|
/** @final @type String */
|
||||||
CLASS_NAME: "OpenLayers.Layer.WMS"
|
CLASS_NAME: "OpenLayers.Layer.WMS"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user