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:
@@ -54,8 +54,10 @@ OpenLayers.Layer.VirtualEarth.prototype =
|
|||||||
var olCenter = this.map.getCenter();
|
var olCenter = this.map.getCenter();
|
||||||
var olZoom = this.map.getZoom();
|
var olZoom = this.map.getZoom();
|
||||||
|
|
||||||
this.vemap.SetCenterAndZoom(new VELatLong(olCenter.lat, olCenter.lon),
|
var veCenter = this.getVELatLongFromOLLonLat(olCenter);
|
||||||
olZoom + 1);
|
var veZoom = this.getVEZoomFromOLZoom(olZoom);
|
||||||
|
|
||||||
|
this.vemap.SetCenterAndZoom(veCenter, veZoom);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user