On Jun 1, 1:23 pm, Beach Bum <asutto...@gmail.com> wrote:
> hello. I am working on a map site located 
> here:http://www.myrecmaps.com/test/index.php
> my question is why do I need to have two  <script src= tags? One is in
> the header:
> <script src="http://maps.google.com/maps/api/js?sensor=false";
> type="text/javascript"></script>
> I believe this one is for v3.

That is loading v3 of the maps API.

> The second tag is in the body:<script src="http://www.google.com/jsapi?
> key=ABQIAAAAfCRztULQzswAus_jVSWN0BTb-
> vLQlFZmc2N8bgWI8YDPp5FEVBSSXM49AZc9HzdYqPtiHdyOblpWmg" type="text/
> javascript"></script>
> I believe this is for the v2 of API...?

This is loading the Google AJAX API
http://code.google.com/apis/ajax/documentation/

which provides the google.loader.ClientLocation

I don't see any v2 map API code (but I might have missed it), but to
load the v2 Google Maps API with the AJAX API you would have to do:
google.load("maps", "2");

and I don't see that.

  -- Larry

> When I remove either of these tags, the map does not load. With both
> tags, it is working fine.
> I assume I am using v2 code in this file somewhere that is not
> supported in v3? Can anyone help point out what is going on here?
> Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to