When I try: <script src="http://www.google.com/jsapi?autoload=%7B%22modules%22%3A %5B%7B%22name%22%3A%22search%22%2C%22version%22%3A%221.0%22%2C %22language%22%3A%22en%22%7D%2C%7B%22name%22%3A%22maps%22%2C%22version %22%3A%222.X%22%7D%2C%7B%22name%22%3A%22elements%22%2C%22version%22%3A %221.0%22%2C%22packages%22%3A%5B%22localsearch%22%5D%7D%5D %7D&key=MY_KEY"></script> <script type="text/javascript"> //<![CDATA[ // google.load("maps", "2.x"); NOT manually loading the map google.setOnLoadCallback(function() { map = new google.maps.Map2(document.getElementById ("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 6); map.addControl(new GSmallMapControl()); } ); //]]> </script>
The map still doesn't load. Any ideas? On May 12, 10:18 am, Jeremy Geerdes <[email protected]> wrote: > The first thing that I have to ask is why you're loading the Maps API > twice. You load it the first time through the autoload parameter, and > the second time with your own google.load() call. Beyond that, I had > no problem loading a map with the exact code that you provided. Please > provide a link to your actual page or, if that's absolutely > impossible, a pastebin of your complete application code, including > html, css, and all Javascript. > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project > quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com > [email protected] > > Unless otherwise noted, any price quotes contained within this > communication are given in US dollars. > > If you're in the Des Moines, IA, area, check out Debra Heights > Wesleyan Church! > > And check out my blog, Adventures in Web Development, > athttp://jgeerdes.blogspot.com > ! > > On May 12, 2009, at 9:11 AM, mp- wrote: > > >http://www.google.com/jsapi?autoload=%7B%22modules%22%3A > > %5B%7B%22name%22%3A%22search%22%2C%22version%22%3A%221.0%22%2C > > %22language%22%3A%22en%22%7D%2C%7B%22name%22%3A%22maps%22%2C%22version > > %22%3A%222.X%22%7D%2C%7B%22name%22%3A%22elements%22%2C%22version%22%3A > > %221.0%22%2C%22packages%22%3A%5B%22localsearch%22%5D%7D%5D > > %7D --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" 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-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
