Virtual Earth API: Adding KML or GeoRSS Layers to the Map

One of the new features of the Virtual Earth v6 Map Control API is the ability to import KML layers on the map.  Previous versions of the API allowed you to import GeoRSS using client-side XML parsing.  However, one of the restrictions was that the GeoRSS file had to be on the same domain as…

5

Virtual Earth API: Bulk Adding Pushpins to a Layer to Improve Performance

One of the new features from the Virtual Earth v6 Map Control API is the ability to bulk add groups of pushpins to the map in one step.  This improves performance when putting a large number of pushpins on the map since the HTML markup of the pushpins is serialized and inserted in the map…

3

Virtual Earth API: Setting Altitude of Shapes

The Virtual Earth v6 map control API added support for setting altitude of VEShapes in Virtual Earth 3D.  There is a new SetAltitude method on VEShape which takes in 2 parameters: VEShape.SetAltitude(altitude, altitudeMode); The altitude parameter is the altitude specified in meters.  The altitudeMode parameter is an optional VEAltitudeMode enumeration specifying the mode of the…

3

Virtual Earth API: Customizing Mouse Wheel Zoom

The Virtual Earth map control supports several interactive ways to zoom in and out on the 2D map view.  For example, you can: Click on (or click and hold) the zoom In/zoom Out icons on the navigation control. Double-click on the map to zoom in at a particular point. Hold down the “Alt” key and…

2

Virtual Earth API: Accurately Position Points in Birdseye

In the Virtual Earth v6 API, one of the new features is improved Birdseye accuracy.  The Virtual Earth v6 API has some new methods to more accurately position pushpins when in Birdseye view.  Satellite (Aerial/Hybrid) and Road imagery views are direct overhead views, so calculations to position a pushpin at an exact latitude and longitude…

1

Virtual Earth API: How to Create a Full-Screen Virtual Earth Mashup

Using the Virtual Earth Map Control API, it is very simple to create a mashup application that is full screen and takes up the entire browser window.  Here is the source code for creating a v6 Virtual Earth full-screen mashup: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><html><head><title>Virtual Earth v6 API – Full Screen Sample</title><meta…

1