MapPoint Virtual Earth SDK example: How cool is this???????
Here is the code:
<html>
<head>
<title></title>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<script src=”http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js”></script>
<script>
var map = null;
function GetMap()
{
map = new VEMap(’myMap’);
map.LoadMap();
}
function FindLoc()
{
map.FindLocation(document.getElementById(’txtWhere’).value);
}
</script>
</head>
<body onload=”GetMap();”>
<div id=’myMap’ style=”position:relative; width:400px; height:400px;”></div>
<INPUT id=”txtWhere” type=”text” name=”txtWhere”>
<INPUT id=”find” type=”button” value=”Find” name=”find” onclick=”FindLoc();”>
</body>
</html>
[...] Archives « How to:: MapPoint in Javascript! [...]
Pingback by Some Kind Of (D)NA at Dev Dawn — September 7, 2006 @ 3:14 pm