Hi,
I'm a little confused: does
the http://code.google.com/p/earth-api-utility-library/ still work (with
V3) or do we need to use this library and is there some more information
available about what's inside the library?
On Wednesday, April 6, 2011 2:19:39 AM UTC+2, Josh Livni (Google Employee)
wrote:
>
> Hi there,
>
> Yes you are correct and you need to explicitly call
> google.load('earth','1') in your code. Now that I think about it,
> however, I should put the google.load function within the utility
> library, and I will do that with the next release.
>
> In the meantime, be sure you first loaded the javascript (for example
> with a script source of "http://www.google.com/jsapi?key=YOUR_KEY">)
> and then call the google.load('earth','1') in your code before
> attempting to instantiate a new GoogleEarth object.
>
> Cheers,
>
> -Josh
>
> On Apr 1, 1:47 pm, ajuarez <[email protected]> wrote:
> > Hi, I'm trying insert the option Earth in my page, this is in google
> > maps v3,
> > then I'm put this code in my page:
> > [code]
> > var Qro = new google.maps.LatLng(20.60,-100.40);
> > var myOptions = {
> > zoom: 13,
> > center: Qro,
> > mapTypeId: google.maps.MapTypeId.ROADMAP,
> > streetViewControl: true
> > }
> > map= new google.maps.Map(document.getElementById("map_canvas"),
> > myOptions);
> > var ge = new GoogleEarth(map);
> > [/code]
> > and send me the Error: uncaught exception: google.earth not loaded
> > I guess I need the next line:
> > google.load('earth', '1');
> > but my html don't run.
> > could you help me??
> > thanks.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/CrXWfzi8QSUJ.
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-js-api-v3?hl=en.