2016-04-15 17 views
0

Bingマップの最初のロード時に表示される初期位置を変更するにはどうすればよいですか? デフォルトでは、米国に設定されていることがわかります(写真を参照)。それを東ヨーロッパ(ルーマニア)に設定したいと思います。ここでBingマップの最初の表示位置を変更する

enter image description here

マップをロードする私のコードです:

else条件を追加することによって、これを修正し
var map = null; 
var points = []; 
var shapes = []; 
var center = null; 

function LoadMap(latitude, longitude, onMapLoaded) { 
    map = new VEMap('theMap'); 
    options = new VEMapOptions(); 
    options.EnableBirdseye = false; 

    // Makes the control bar less obtrusize. 
    map.SetDashboardSize(VEDashboardSize.Small); 

    if (onMapLoaded != null) 
     map.onLoadMap = onMapLoaded; 

    if (latitude != null && longitude != null) { 
     center = new VELatLong(latitude, longitude); 
    } 

    map.LoadMap(center, null, null, null, null, null, null, options); 
} 

答えて

0

else { 
    center = new VELatLong(45.747806, 24.617061); 
} 
関連する問題