VEMap.ShowBaseTileLayer Method
You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.
Shows the base tile layer of the map.
VEMap.ShowBaseTileLayer();
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>ShowHideBaseTileLayer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script>
<script type="text/javascript">
var map = null;
function GetMap()
{
map = new VEMap('myMap');
map.LoadMap();
var location = new VELatLong(47.65, -122.2);
map.SetCenterAndZoom(location,14);
}
function ShowBaseTiles()
{
map.ShowBaseTileLayer();
}
function HideBaseTiles()
{
map.HideBaseTileLayer();
}
</script>
</head>
<body onload="GetMap();">
<div id='myMap' style="position:relative; width:600px; height:400px;"></div>
<input type="button" value="Hide Base Tiles" onclick="HideBaseTiles();"/><br>
<input type="button" value="Show Base Tiles" onclick="ShowBaseTiles();"/><br>
</body>
</html>