Virtual Earth 3D Flight Simulator – part 2

Your class should look like this: using System;using System.IO;using System.Drawing;using System.Threading;using System.Reflection; using System.Runtime.InteropServices;using Microsoft.MapPoint.Rendering3D.GraphicsProxy;using Microsoft.MapPoint.PlugIns;using Microsoft.MapPoint.Rendering3D; using Microsoft.MapPoint.Rendering3D.Steps.Actors;using Microsoft.MapPoint.Rendering3D.Atmospherics;using Microsoft.MapPoint.Binding; namespace SimpleFlightSimulator{    [Guid("67D5CFD7-9975-492d-B7AE-1B4DE757B0BD")]    public class SimpleFlightSimulatorPlugin : PlugIn    {                   }} There are three methods, Name, Activate and the Deactivate methods, that are a part of the PlugIn class which you will want to…

Virtual Earth 3D Flight Simulator – part 3

Another class called Airport can be made to specify an Airport location. This class will have a method called FlyToHere that will cause the plane to fly to runway of the selected airport. This class should look like this: using System;using Microsoft.MapPoint;using Microsoft.MapPoint.Rendering3D;using Microsoft.MapPoint.Rendering3D.Cameras;using Microsoft.MapPoint.Geometry.VectorMath; namespace SimpleFlightSimulator{    public class Airport    {        private LatLonAlt _latlong;        private…

Virtual Earth 3D Flight Simulator – part 4

You now have to create the main functionality of the plug-in. You will want to create some global Airport objects like so: private Airport lasVegas = new Airport(36.07639, -115.12571, 0, -14, 89.42);private Airport torontoPearson = new Airport(43.6738, -79.66459, 0, -14, -47.13);private Airport newyorkNewark = new Airport(40.67988, -74.17279, 0, -14, -24.56);private Airport seattleTacoma = new Airport(47.43102,…

Recursive Find Calls

When using the AJAX version of the Virtual Earth control people have had issues making multiple find calls, one after the other. The resulting information does not always return in the order expected. The way around this issue is to use recursion. This will essentially make one call at a time and wait for one…