0
A
回答
2
如果您使用的是V7.0,你可以隱藏在地圖的構造函數的性質showScalebar設置爲false(在mapOption參數)比例尺,請參閱MSDN:
http://msdn.microsoft.com/en-us/library/gg427603.aspx
而且這裏有一個例子:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
<script type="text/javascript">
function GetMap()
{
// Set the map and view options, setting the map style to Road and
// removing the user's ability to change the map style
var mapOptions = {credentials:"Bing Maps Key",
height: 400,
width: 400,
showScalebar: false};
// Initialize the map
var map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), mapOptions);
}
</script>
</head>
<body onload="GetMap();">
<div id='mapDiv' style="position:relative;"></div>
</body>
</html>
相關問題
- 1. Bing地圖API - 刪除PIN
- 2. Bing地圖,如何縮放地圖?
- 3. 如何在Bing地圖中刪除特定的pusipin?
- 4. 如何刷新bing地圖?
- 5. 如何刪除BarChart圖例
- 6. bing地圖圖釘
- 7. 從Bing地圖
- 8. Winrt Bing地圖
- 9. Bing地圖streetview
- 10. Bing地圖iPhoneSDK
- 11. Bing地圖V8 - 清除層從地圖視圖
- 12. Bing地圖V8 - 如何在Bird's Eye視圖中旋轉地圖?
- 13. Bing地圖,任何問題
- 14. 嵌入bing地圖 - 圖釘
- 15. Multimarkers在Bing地圖
- 16. Bing地圖匹配
- 17. Bing地圖和knockout.js
- 18. 旋轉Bing地圖
- 19. Bing地圖旋轉
- 20. Bing地圖REST - Javascript
- 21. 果園bing地圖
- 22. 刪除圖例dimple.js
- 23. MPAndroidChart刪除圖例
- 24. 從bing地圖中刪除多邊形/多段線
- 25. 如何在Google地圖中實現Bing地圖,如InfoWindow?
- 26. 如何根據給定比例[Bing Map]生成地圖?
- 27. 如何使用bing-api獲取地圖比例?
- 28. 刪除PIN地圖視圖?
- 29. 如何在Bing地圖上繪製shapefile
- 30. Bing地圖.v7如何迭代map.entities?
FYI:Bing地圖距離傳奇 –