Unfortunately, this is one of the tricky aspects of asynchronously loading the Maps API - you can't load extensions that reference Maps API classes until after the Maps API JS has loaded, and then you cannot use that extension until you know it's loaded.
I filed a feature request here to ask the AJAX APIs team to make it easier: http://code.google.com/p/google-ajax-apis/issues/detail?id=95 I also posted a function there that you could use to load in markermanager.js after the Maps API is loaded: function getJs() { var script = document.createElement("script"); script.src = "http://imagine-it.org/google/slideshowcontrol.js"; // Firefox script.onload = loadMap; // IE script.onreadystatechange = function() { if (/loaded|complete/.test(this.readyState)) { loadMap(); } } document.body.appendChild(script); } - pamela On Wed, May 6, 2009 at 8:34 AM, Mike Williams<[email protected]> wrote: > > markermanager has to be loaded after the Maps API. > > The simple solution is to load the Maps API without using jsapi. > > An alternative would be to write something that will load > markermanager.js dynamically, call that from initialize(), and move any > code that uses MarkerManager into the callback function of your > markermanager dynamic loader. > > Or use GMarkerManager. > > -- > http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
