From e08ab3371c73cf91481d953b2cea0e30b9e649f6 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 18 Jul 2006 16:43:34 +0000 Subject: [PATCH] use built-in VE translation functions git-svn-id: http://svn.openlayers.org/trunk/openlayers@973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/VirtualEarth.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } },