On Sun, Oct 5, 2008 at 5:56 AM, pentagon <[EMAIL PROTECTED]> wrote:
>
> thanks, but this sample doesn't show how to add a event to ge object,
> because it doesn't show how to obtain the google.earth object with
> google map api.

Have you actully tried it?

As soon as you have loaded the Earth using the Earth button, 'google'
exists in global namespace* - as does google.earth.


* well technically window. but its the same in javascript.

>  With google earth api,if i wanna add a event, i have
> to get a google.earth object first.Can i use this method by using
> google map api.
>
> google.earth.addEventListener(ge.getGlobe(), "mousedown",
> myEventListener);
>
>
>  var ge;
> function getEarthInstanceCB(object)
> {
>   ge = object;
>  // You can now manipulate ge using the full Google Earth API.
> }
>
>
> So is there a way to control the events.
>
>
>
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to