First, your var map needs to be global, just like you defined your var xml, outside all functions. Then, your functions datatyperef() and datatypecust() do nothing other than set the value of var xml.
Your GDownloadUrl runs in the global space, as soon as the scripts load, so it can only use the original value of var xml. Wrap all your GDownloadUrl ... block inside a function and call that function from datatyperef() and datatypecust(). ... and by the way, it is javascript, not java. -- Marcelo - http://maps.forum.nu -- On Apr 13, 6:48 pm, Mike <[email protected]> wrote: > I'm new to making google maps. to explain, in short, what I'm trying > to do is map out two different sets of markers with two different XML > files. > > data.xml - has referance names, addresses, phone, etc... > data2.xml - is just a list of cords of current customers and just > needs a marker no info. > > I'm having a hard time getting the java to read the two different xml > files, also the map doesnt display in Internet Explorer. > > When I run the html in Firefox and use the error console the only > error it comes up with it is "map is not defined". this error only > comes up when I try to run the script with two xml files. > > Here is the link to my map I'm makinghttp://www.naomi-dr.com/map/test.html > > Any help is very helpful! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
