From d15d941d68de8a2d7c04e73449f3496d2b4e34b3 Mon Sep 17 00:00:00 2001 From: euzuro Date: Sun, 16 Jul 2006 16:56:15 +0000 Subject: [PATCH] we now can remove the getExtent() function from Google.js and VirtualEarth.js git-svn-id: http://svn.openlayers.org/trunk/openlayers@951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 18 ------------------ lib/OpenLayers/Layer/VirtualEarth.js | 18 ------------------ 2 files changed, 36 deletions(-) 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; - }, /********************************************************/