diff --git a/lib/OpenLayers/Layer/VirtualEarth.js b/lib/OpenLayers/Layer/VirtualEarth.js index db7b4afe7e..cf115eb50a 100644 --- a/lib/OpenLayers/Layer/VirtualEarth.js +++ b/lib/OpenLayers/Layer/VirtualEarth.js @@ -333,49 +333,6 @@ OpenLayers.Layer.VirtualEarth.prototype = return pixel; }, - // - // TRANSLATION: VELatLongBounds <-> OpenLayers.Bounds - // - - /** - * @param {VELatLongBounds} veLatLongBounds - * - * @returns An OpenLayers.Bounds, translated from veLatLongBounds - * Returns null if null value is passed in - * @type OpenLayers.Bounds - */ - getOLBoundsFromVELatLongBounds: function(veLatLongBounds) { - var olBounds = null; - if (veLatLongBounds != null) { - var sw = veLatLongBounds.getSouthWest(); - var ne = veLatLongBounds.getNorthEast(); - olBounds = new OpenLayers.Bounds(sw.lng(), - sw.lat(), - ne.lng(), - ne.lat() ); - } - return olBounds; - }, - - /** - * @param {OpenLayers.Bounds} olBounds - * - * @returns A VELatLongBounds, translated from olBounds - * Returns null if null value is passed in - * @type VELatLongBounds - */ - getVELatLongBoundsFromOLBounds: function(olBounds) { - var veLatLongBounds = null; - if (olBounds != null) { - var sw = new VELatLong(olBounds.bottom, olBounds.left); - var ne = new VELatLong(olBounds.top, olBounds.right); - veLatLongBounds = new VELatLongBounds(sw, ne); - } - return veLatLongBounds; - }, - - - /** @final @type String */ CLASS_NAME: "OpenLayers.Layer.VirtualEarth" });