我有以下HTML:使用Bing地圖與引導
<head>
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script>
<script type="text/javascript" src="~/Scripts/IndexView.js"></script>
</head>
<body onload="LoadMap();">
<div class="row">
<div>
<h2>Where do you want to go?</h2>
</div>
</div>
<div class="row">
<div id="pnlMap">
</div>
</div>
<div class="row">
<div style="align-content:center">
<h3>Test</h3>
</div>
</div>
</body>
而且IndexView.js:
function LoadMap() {
var map = new VEMap('pnlMap');
map.LoadMap();
}
我結束了在這裏的地圖開始在最左上頁的網頁。我想要的是地圖出現在文本下面你想去哪裏?。
正如我所理解的引導「行」的工作方式,他們應該順序出現在頁面上,如果我用文本替換地圖,那正是發生了什麼;那麼,是否有Bing地圖打破了這一規則。尋找here我在做什麼似乎是正確的。
我看不到引導庫加載... – Himanshu
引導通過在_Layout.cshtml捆裝。我把它排除在外,因爲它只是擠滿了問題。 –
看起來您正在使用的Bing Maps V6.3已於去年11月棄用,並且即將關閉。您應該將您的應用遷移到Bing Maps V8,它具有更多功能並且速度更快。 – rbrundritt