Re: XML Parsing to Google Maps

2008-12-22 Thread Rossko
> How can I fix this? > > Should I call initialize within loadXML? The usual approach would be to put just the code that processes the XML data inside the callback function, and leave the map initializing outside. In your case, take the code beginning var bounds = new GLatLngBounds()

Re: XML Parsing to Google Maps

2008-12-22 Thread p00kie
How can I fix this? Should I call initialize within loadXML? On Dec 19, 3:39 pm, Mike Williams wrote: > You're reading the XML asynchronously. > > You attempt to use latD and lonD immediately. Some time later, the XML > data cones back and you populate those variables, but by then it's too > la

Re: XML Parsing to Google Maps

2008-12-19 Thread Mike Williams
You're reading the XML asynchronously. You attempt to use latD and lonD immediately. Some time later, the XML data cones back and you populate those variables, but by then it's too late. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~-~--~~

XML Parsing to Google Maps

2008-12-19 Thread p00kie
Hello! Having this problem parsing XML file and creating markers from data within XML file. Firebug says that latD is not available. However, inspecting the DOM, latD and lonD are completely populated with the data that I have from the XML file. So why is latD within initialize() not available?