I have tried it and actually the google.earth object can be used
directly ,when the Earth is loaded.I didn't totally understand the
documents before.But i found that the line and the poly objects which
i add in the G_NORMAL_MAP or G_SATELLITE_TYPE state, can't
automatically display in the G_SATELLITE_3D_MAP state when I shift
the map from the G_NORMAL_MAP to G_SATELLITE_3D_MAP。But the point
objects can be automatically displayed both in G_NORMAL_MAP and
G_SATELLITE_3D_MAP。 Have you ever met this problem and do I need to
refresh or reload the map when shifting the maptype.
On 10月6日, 上午2时58分, "Barry Hunter" <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---