Add to Technorati Favorites Getting started with Virtual Earth v6
..................................
the blog@spencerwilliams.net

Getting started with Virtual Earth v6

January 8, 2008 07:42 by Spencer

After reading up on the new version 6 of Virtual Earth SDK and playing with the interactive version of the SDK I was ready to go.  No API key to apply for (something you have to do with Google Maps API), just code and go.  Loading a map is pretty easy to do:

          var LA = new VELatLong(34.0540, -118.2370);

          function GetMap()
         {
            map = new VEMap('myMap');
            map.LoadMap(LA, 14, VEMapStyle.Road, false, VEMapMode.Mode2D, true, 1);
         }

Add the GetMap() to the body onload, create a div called 'myMap' and it loads right up.

Now, onto the fun stuff - where I've been with my GPS.


Related posts

Comments are closed
 
Blog Information Profile for williasp