On Sep 26, 9:57 am, Rossko <[email protected]> wrote:
> > now, when I click the button the api is loaded and I get a blank page,
> > the status bar reads "Reading maps.google.com" and it doesn't finish
> > loading, goes on forever.
>
> Perhaps your doing something wrong.  It's impossible to tell.
> Did you see the posting 
> guidelines?http://groups.google.com/group/google-maps-api/web/suggested-posting-...
>
> You could always try the recommended method 
> -http://code.google.com/apis/maps/documentation/#AJAX_Loader

Ok , Rossko, thanks for the recommended method.

I used the google.load() to load the api and instead of GLatLng I've
used google.maps.LatLng

Now I get this error(although the error is on line 222 , it refers to
line 317 in the code below the error)

Error: google.maps.LatLng is not a constructor
Source File: blablablabla
Line: 222


This is the code:

310                                 var script = document.createElement
('script');
311                                 script.setAttribute("src","http://
www.google.com/jsapi?key="+api_key);
312                                 script.setAttribute("text","text/
javascript");
313                                 document.body.appendChild(script);
314
315                                 window.setTimeout(function(){
316                                             google.load("maps",
"2.x");
317                                             aLocation = new
google.maps.LatLng(44.440590,26.084789);
318
319                                             initialize();
320                                 },2000);
--~--~---------~--~----~------------~-------~--~----~
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