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
This commit is contained in:
@@ -314,24 +314,6 @@ OpenLayers.Layer.Google.prototype = Object.extend( new OpenLayers.Layer(), {
|
|||||||
}
|
}
|
||||||
return zoom;
|
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;
|
|
||||||
},
|
|
||||||
|
|
||||||
/********************************************************/
|
/********************************************************/
|
||||||
/* */
|
/* */
|
||||||
|
|||||||
@@ -214,24 +214,6 @@ OpenLayers.Layer.VirtualEarth.prototype =
|
|||||||
}
|
}
|
||||||
return zoom;
|
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;
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
/********************************************************/
|
/********************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user