i really appreciate ur help.I don't konw if this function returns the
GEGlobe object.if i wanna set the center of the map,can i write like
this:
var ge= map.getEarthInstance(function(earth) {
earth.getLayerRoot().enableLayerById(earth.LAYER_BORDERS, true);
});
var lookAt =
ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND);
lookAt.setLatitude(39.917);
lookAt.setLongitude(116.397);
ge.getView().setAbstractView(lookAt);
But actually it doesn't work.I really wanna konw how to let google map
api and google earth api work together,thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---