Dev Dawn

September 5, 2006

How to:: MapPoint in Javascript!

Filed under: Uncategorized — @ 3:54 pm

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>

See it working here

How to MapPoint in Clarion to follow…

1 Comment »

  1. [...] Archives « How to:: MapPoint in Javascript! [...]

    Pingback by Some Kind Of (D)NA at Dev Dawn — September 7, 2006 @ 3:14 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Spam Protection by WP-SpamFree

Powered by WordPress