Can't change camera init location

Apr 21, 2009 at 7:50 AM

I have a problem with starting the VE. Is changed the init location of the globe to a location in Europe, but
when i do the first FlyTo the camera still starts above Washington. I tried to get and set the camera postition, but
i cant reach them in the way i am formiliar with in VE.

Can someone give me some kind of hint?

Apr 22, 2009 at 7:05 AM
I noticed that when i wait until the map is loaded, the FlyTo works fine.
So the following code is to early to do a FlyTo in:


private void map_MapLoaded(object sender, EventArgs e)
    map.FlyTo(new VELatLong(standardLatitude, standardLongitude), -90, 0, standardAltitude, null);

I tried almost all events, but the first FlyTo wont work in any !

Any ideas?


Apr 23, 2009 at 4:48 PM
I'll test to see the earliest that FlyTo can be called.

You should be able to set latitude, longitude, and altitude on the VEMap at any time (even in XAML).
Apr 23, 2009 at 4:49 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Apr 23, 2009 at 6:45 PM
All other properties work fine like Lan Lon and Alt.

But i want to start a nice FlyTo when program is loaded. Kind of Intro.

- i will continue the discussion at the work item from now on!
Aug 18, 2011 at 12:02 PM

Hi Josh!

I'm sorry to add a comment to a closed issue but i've downloaded the latest version of the source code and the problem mentioned in this work item is not solved for me. I fix the properties in the MapLoaded event and the first flyto always start in Washington.

Any help?

Thanks in advanced,

Aug 20, 2011 at 4:18 AM


Can you paste the relevant parts of your code and XAML?

(FYI: I won't be able to respond until the week of the 29th.)



Aug 22, 2011 at 7:25 AM


I have work around this issue by waiting one second after the MapLoaded event. (simply done with a dispatcherTimer)