diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index f2e2d33c55..b636fb3e38 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -314,24 +314,6 @@ OpenLayers.Layer.Google.prototype = Object.extend( new OpenLayers.Layer(), { } return zoom; }, - - /** - * @returns A Bounds object which represents the lon/lat bounds of the - * current viewPort. - * If gmap is not loaded, returns null - * @type OpenLayers.Bounds - */ - getExtent: function () { - var extent = null; - if (this.gmap != null) { - if (this.gmap.getCenter() == null) { - this.moveTo(); - } - var gLatLngBounds = this.gmap.getBounds(); - extent = this.getOLBoundsFromGLatLngBounds(gLatLngBounds); - } - return extent; - }, /********************************************************/ /* */ diff --git a/lib/OpenLayers/Layer/VirtualEarth.js b/lib/OpenLayers/Layer/VirtualEarth.js index 03ba7e389a..3597570942 100644 --- a/lib/OpenLayers/Layer/VirtualEarth.js +++ b/lib/OpenLayers/Layer/VirtualEarth.js @@ -214,24 +214,6 @@ OpenLayers.Layer.VirtualEarth.prototype = } return zoom; }, - - /** - * @returns A Bounds object which represents the lon/lat bounds of the - * current viewPort. - * If vemap is not loaded, returns null - * @type OpenLayers.Bounds - */ - getExtent: function () { - var extent = null; - if (this.vemap != null) { - if (this.vemap.getCenter() == null) { - this.moveTo(); - } - var veLatLongBounds = this.vemap.getBounds(); - extent = this.getOLBoundsFromVELatLongBounds(veLatLongBounds); - } - return extent; - }, /********************************************************/