diff --git a/lib/OpenLayers/Layer/VirtualEarth.js b/lib/OpenLayers/Layer/VirtualEarth.js index d2cef19a1b..d5e1f2b308 100644 --- a/lib/OpenLayers/Layer/VirtualEarth.js +++ b/lib/OpenLayers/Layer/VirtualEarth.js @@ -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); } },