0
如何刪除Bing地圖圖例?如何刪除Bing地圖圖例?
如何刪除Bing地圖圖例?如何刪除Bing地圖圖例?
如果您使用的是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>
FYI:Bing地圖距離傳奇 –