On 28 June 2010 09:43, ProbablyMike <[email protected]> wrote: > I see you're loading V3 of the API, and that looks like V2 code to me. > I've not seen much V3 code but I'm sure it's quite different:
No, this http://maps.google.com/maps?file=api&v=3&key=ABQIAAA... loads v2.242c, as evidenced from the error message quoted. You can't load Version 3 that way; the loader is different -- which is just as well, considering Version 3 code is very different! As it's loading Version 2 code, the mapping code is ok. Not sure what's causing the error though. You are calling function load() from document.ready(), which may be too early. The normal place -- with <body onload...> is equivalent to window.load() in JQuery and that might produce better results. The error message on creating a GMap2 object normally means that the containing div can't be found, which would be consistent with calling the function too early. -- 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.
