On Nov 23, 6:46 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm trying to bring all the points from a databse onto the Map, but I
> need them placed on the nearest street. ( very bad GPS hardware ) The
> problem is that the Gevent.addListener behaves strange - I can't
> access global variables and such things.
> The site is:http://gps.tcpcgi.net/main_map.php
> As you can see only one point is shown - but there are 5 points. I'm
> not so good in javascript ( usually I use more perl and php ) so maybe
> something really easy that I don't know about javascript.
> Thanks in advance for any help or suggestion

You need to understand the asynchronous nature of GDirections:
http://econym.org.uk/gmap/async.htm

You are sending lots of requests in a loop, never waiting for the
result.

You may also want to look at this page:
Part 17 Geocoding multiple addresses
http://econym.org.uk/gmap/geomulti.htm

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
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