On Sep 9, 4:26 pm, Jonathan Henderson <[email protected]> wrote:
> Okay, so there are a couple of things I don't yet understand. To make
> the the Marker Manager Script load after the API script do you mean I
> should move the code for Marker Manager to the bottom, or set it to
> activate in 5 seconds?
No, just change the order of the <script> tags in the page. The
manager script needs to appear after the API script. They can still be
adjacent in the head of the page, just the other way round.
> Also, I tried moving the map variable out of the function so it would
> become global but that ended up crashing the map. So, is there a
> special way to do it?
var map; // outside any function is global
function myfunc()
{ map = new GMap2(...);
// without "var" uses the global variable
...
}
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---