I posted too fast.  The lines just above the body tag where the
problem:

90: var map = new GMap2(document.getElementById("map"));
91: var panel = document.getElementById("panel");
92: var dir = new GDirections(map, panel);
93: dir.load("San Francisco to Los Angeles")

These were leftovers from an example that I started with from google
docs.  As I added elements (xml) to the map they were duplicated in
the load() function.  Thanks to everyone who took the time to help me
through it!



On Aug 29, 5:13 pm, Mick <[email protected]> wrote:
> If I take it out of load() I still get the "main.js" error along with
> a "map is undefined" .  If I take it out of the other place (just
> before body) I get a "map is undefined error"
>
> On Aug 28, 6:17 pm, Esa <[email protected]> wrote:
>
> > You have twice the map construction line herehttp://www.nafwb.org/findchurch
>
> >     var map = new GMap2(document.getElementById("map"));
>
> > One inline and one inside load() function.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to