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:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user