Integrating Virtual Earth into the Personal Portal
To integrate Virtual Earth, you have to use JavaScript and HTML. The Virtual Earth control needs to reference a JavaScript library before you can use it. Use the following code to reference it on your page:
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>
The next decision is where to place it. You know from your layout design in Chapter 4 that the control will appear on the main site. This means that the HTML markup will likely appear in the Content control of the Main.master file. Because the Virtual Earth JavaScript library needs to be available when the markup in Main.master is displayed, you must place the library reference in the parent ...
Get Microsoft® Visual Web Developer™ 2008 Express Edition Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.