use built-in VE translation functions

git-svn-id: http://svn.openlayers.org/trunk/openlayers@973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-18 16:43:34 +00:00
parent a046bb2b31
commit e08ab3371c

View File

@@ -53,9 +53,11 @@ OpenLayers.Layer.VirtualEarth.prototype =
if (this.vemap != null) {
var olCenter = this.map.getCenter();
var olZoom = this.map.getZoom();
var veCenter = this.getVELatLongFromOLLonLat(olCenter);
var veZoom = this.getVEZoomFromOLZoom(olZoom);
this.vemap.SetCenterAndZoom(new VELatLong(olCenter.lat, olCenter.lon),
olZoom + 1);
this.vemap.SetCenterAndZoom(veCenter, veZoom);
}
},