2
在我的Bing Maps V6.3實現中,我能夠使用以下代碼圍繞點數組圍繞我的地圖。中心Bing地圖V7圍繞點陣
map.SetMapView(latlonArray);
if (map.GetZoomLevel() > 10) {
map.SetZoomLevel(10);
};
此代碼在Bing Maps V7中不起作用,我無法在Web上找到替代方法。
注:latlonArray只是簡單地填充這樣
var increment = 0;
$.each(json_object, function() {
latlonArray[increment] = new VELatLong(this.lat, this.lon);
increment = ++increment;
});
看到我對這個問題的回答:http://stackoverflow.com/questions/7107536/bing-virtual-earth-7-0-calculate-area/7110178#7110178 –