As I said, it's the exact same code that you sent, just plugged into a  
rudimentary html page. The only difference - and it shouldn't matter  
at all - is that I added "var " in front of map=new  
google.maps.Map2(...);  Here's a link to the pastebin.

http://pastebin.com/f4827b562

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://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, at 
http://jgeerdes.blogspot.com 
  !


On May 12, 2009, at 12:04 PM, mp- wrote:

>
> @Jeremy
>
> Would you mind posting to this group the code you used to get the  
> auto-
> load to work?
>
> Thanks
>
>
>
> On May 12, 11:04 am, Jeremy Geerdes <[email protected]> wrote:
>> As I said in my previous post, that was the only thing out of the
>> ordinary that I noticed in the code snippet you provided. But that
>> shouldn't stop the map from loading. I successfully loaded the map
>> with exactly the same code that you have. To diagnose the problem, we
>> will need a link to the actual page where you're having a problem or,
>> if that is absolutely impossible, a link to a pastebin of the  
>> complete
>> application code, including all html, Javascript, CSS, etc. In other
>> words, a code snippet such as those you have provided is not
>> sufficient for us to help you.
>>
>> 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 11:01 AM, mp- wrote:
>>
>>
>>
>>> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to