I've solved the first part, the one about loading different models in
different instances:
It's as easy as this:
function init() {
google.earth.createInstance("map3d_1", initCallback_1,
failureCallback);
google.earth.createInstance("map3d_2", initCallback_2,
failureCallback);
}
And then load the 2 different models in each initCallback function,
i.e.:
function initCallback_1(object) {
ge = object;
ge.getWindow().setVisibility(true);
ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);
ge.getOptions().setStatusBarVisibility(true);
m0 = getNL('http://................model1.kmz');
la = ge.createLookAt('');
la.set(lat, lon, 0, ge.ALTITUDE_RELATIVE_TO_GROUND, head, tilt,
range);
ge.getView().setAbstractView(la);
initspeed = ge.getOptions().getFlyToSpeed();
And
function initCallback_2(object) {
ge = object;
ge.getWindow().setVisibility(true);
ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);
ge.getOptions().setStatusBarVisibility(true);
m0 = getNL('http://................model2.kmz');
la = ge.createLookAt('');
la.set(lat, lon, 0, ge.ALTITUDE_RELATIVE_TO_GROUND, head, tilt,
range);
ge.getView().setAbstractView(la);
initspeed = ge.getOptions().getFlyToSpeed();
Now I would like to tell Google earth to move the camera in both
instances at the same time.
Any clue?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---