FlyToDone

Sep 17, 2010 at 6:06 PM

Is there any event that will fire when a FlyTo is completed? What I and doing now is checking that the the altitude is aproximatly the same as the pushpin that was clicked. Currently I am checking on the CamaraChanged Event which will happen quite frequently durring a FlyTo.

Thanks

Coordinator
Sep 17, 2010 at 9:34 PM

Boylston,

Yes. If you look at some of the overloads for the VEMap.FlyTo method, you will see that some of them have a EventHandler callback parameter:

FlyTo(VELatLong latLong, double pitch, double yaw, EventHandler callback)

FlyTo(VELatLong latLong, double pitch, double yaw, double altitude, EventHandler callback)

If you provide a plain EventHandler delegate, then it will be called when the FlyTo is complete.