Google maps api 3 谷歌地图Api版本2至谷歌地图Api版本3

Google maps api 3 谷歌地图Api版本2至谷歌地图Api版本3,google-maps-api-3,google-maps-api-2,Google Maps Api 3,Google Maps Api 2,我使用下面的代码找到中心,并放大我使用谷歌地图api V2的代码 function calculaCentro(points){ alert("in calcula Centro"); var gbounds = new GBounds(points); alert("gbounds is" +gbounds); var center = gbounds.mid(); return center; } function calculaZoom(points){

我使用下面的代码找到中心,并放大我使用谷歌地图api V2的代码

function calculaCentro(points){
alert("in calcula Centro");
    var gbounds = new GBounds(points);
    alert("gbounds is" +gbounds);
    var center = gbounds.mid();
    return center;
}


function calculaZoom(points){
alert("in calcula zoom");
    var gbounds = new GBounds(points);
    var n = new GLatLng(gbounds.min().y,gbounds.min().x);
    var s = new GLatLng(gbounds.max().y,gbounds.max().x);
    var zoom = map.getBoundsZoomLevel(new GLatLngBounds(n,s));
    return zoom;
}

现在我想把它转换成google maps Api V3。但是找不到任何精确的GBounds替代品。有人能帮我吗?

你想要的是LatlGBounds