http://maps.forum.nu/gm_driving_radius.html


--
Marcelo - http://maps.forum.nu
--



On Oct 2, 12:39 pm, "Elia C." <[email protected]> wrote:
> Hi,
>
> I have to obtain the distance from a point (X) to many others points
> (A, B, C, ...).
> I try to do this:
>
> directions.load("from: "+$('x').value+" to: "+$('a').value);
> directions.load("from: "+$('x').value+" to: "+$('b').value);
> directions.load("from: "+$('x').value+" to: "+$('c').value);
>
> NOTE:
> - directions = new GDirections();
> - I use prototype to obtain the element from the dom.
>
> I also declare two listener
>
> GEvent.addListener(directions, "load", onGDirectionsLoad);
> GEvent.addListener(directions, "error", onGDirectionsError);
>
> I notice that onGDirectionsLoad is called only one time (the last
> direction load).
>
> How can I synchronize the call and the answer? Or is it an other
> tecnique to use to solve my problem?
>
> Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
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