This example comes from Steve Lombardi’s blog post last year and has been updated to the latest version of Virtual Earth at the time of writing. The code and collection was presented at the Museums and the Web conference in Montreal, Canada.
In the space of 10 minutes you can present a custom collection presented on the Virtual Earth platform within your own web site by leveraging http://maps.live.com as your content editor and storage and using the Virtual Earth API. Here we present the simple code to do this and some extra features like a map search, custom numbered icons and an outline text listing with clickable titles.
To begin, navigate to http://maps.live.com. This is Microsoft’s consumer mapping site built on top of the Virtual Earth API but with many more features. Here you can sign in using live ID and add pushpins, polylines, polygons and even 3D models to a collection. For example add some pushpins of famous landmarks in your area, add textual description, an image and a link to further information. Now save your collection and make it public. Here is an example of some landmarks around Montreal:
Most of the hard work is now done, you have an interface to create and edit your content and share it with the world via GeoRSS, KML or as a VE collection. We will use the last option for this example. In order to access the VE collection you have made we need the collection ID, I find the easiest way to retrieve this is from the Actions -> Send to -> email in the collections panel. The link provided in the email contains the collection ID we will need it will look something like this (Note the exclamation point and following digits are part of the ID):
- Page Body loads -> load the map
- Map Loads -> load the collection
- Collection Loads -> change the icons and make the text outline with links
See the final page in action here: