On Apr 17, 11:35 am, dc7669 <[email protected]> wrote:
> Hi all,
>
> I am trying to learn to use google map to plot things.  In this
> test.html below, I tried to read some addresses from an XML files
> (which I was successful in doing) and plot them on at map (which I was
> succesful in doing as well), but I have problems providing the right
> html information when a marker is clicked.
>
> http://weather.gfc.state.ga.us/Google/Directory/test-sample.htm,
>
> All markers has the last entry on the XML file and yet they were plot
> appropriately!
>
> Below is a snippet of the code...
> geocoder.getLatLng(buf,
>                      function(point) {
>                      if (!point) {
>                                  alert(buf + "<br> NOT FOUND`");
>                                  }
>                      else {
>                            var markers3 = createMarker (point,buf, i);
>                            map2.addOverlay(markers3);
>                           } // close else {
>                      });  // close out function(point) {,
> geocoder.getLatLng

Your link doesn't work...

Geocoding is asynchronous.  When the callback function runs the for
loop has finished and i = the last entry.

>
> but is a physical address and I want it to show when the marker is
> clicked.
>
> What did I do wrong?
>
> Thank you for your time.
>
> dc7669
--~--~---------~--~----~------------~-------~--~----~
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