> 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()
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
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
--~--~-~--~~
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?