<!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=6.2"></script>
<script type="text/javascript">
var map = null;
var value = 0;
function GetMap()
{
map = new VEMap('myMap');
map.LoadMap();
map.SetMapStyle(VEMapStyle.Aerial);
map.SetZoomLevel("5");
}
function SetVal(v)
{
value = v;
}
function SetTileBuffer()
{
map.SetTileBuffer(value);
alert("The tile buffer has been set to " + value +
".\nLarger buffer values improve panning," +
"\nbut may also cause the page to load more slowly.");
}
</script>
</head>
<body onload="GetMap();">
<div id='myMap' style="position:relative; width:400px; height:400px;">
</div>
<input id="btnSetBuffer" type="button" value="Set Tile Buffer"
onclick="SetTileBuffer()"><br />
<form id="buffValues">
0<input name="tbVal" type="radio" onclick="SetVal('0')"
checked="checked"/> |
1<input name="tbVal" type="radio" onclick="SetVal('1')" /> |
2<input name="tbVal" type="radio" onclick="SetVal('2')" /> |
3<input name="tbVal" type="radio" onclick="SetVal('3')" />
</form>
</body>
</html>