there has never been a VELatLongBounds... at least not that we know of. this code was just brought over from google.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user