0
我正在使用下一個代碼,但無法使其適用於我。 它錯誤位置如何操作navigationBarOrientation和NavigationBarMode in Bing Maps V8
<!DOCTYPE html>
<html>
<head>
<title>loadMapSyncHTML</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?branch=release'></script>
<script type='text/javascript'>
function loadMapScenario() {
var map = new Microsoft.Maps.Map(document.getElementById('divActivityQueryMapView'), {
credentials: '',
navigationBarMode: navigationBarMode.compact
center: new Microsoft.Maps.Location(51.50632, -0.12714)
});
map.setOptions({
maxZoom: 12,
minZoom: 5,
navigationBarOrientation:horizontal
});
}
</script>
</head>
<body onload='loadMapScenario();'>
<div id='printoutPanel'></div>
<div id='divActivityQueryMapView' style='width: 800px; height: 900px;'></div>
</body>
和地圖參數和地圖構造嘗試,但它不工作
「不工作」實際上意味着什麼。請閱讀如何發佈適當的,有用的問題。 – mickmackusa