Hi,
Hmm there appears to be a bug of some kind in the earth/map
integration as far as I can tell.
I have made this test page to highlight the problem as I see it.
http://earthapi.googlepages.com/gemapbug.html
As you can see the 'changeHeading' method is called in the
getEarthInstanceCB method, the browser alerts "Heading: 270" but the
heading does not change.
However if you click the rotate button to call the function then the
browser alerts "Heading: 270" and the heading changes correctly. To me
it looks like the plug-in is still not fully initialized, even in the
getEarthInstanceCB method.
I have tested this on XP sp2/sp3 in FF 2/3, IE 7/8 and Chrome 2 all
with the same result.
AFAIK the Google Earth developer are still working on the earth/map
integration and this is possibly something that is to be fixed. Maybe
wait to hear back from one of the Google team for a more definitive
answer.
The only other thing I can suggest is to use a timeout to set the
heading after x seconds, to give the plug-in time to fully initialise.
Although that seems like an unreliable workaround to me...
Sorry I can't help more.
F.
> > > Timothy- Hide quoted text -
>
> - Show quoted text -